Fixed an import error introduced through moving the jinja trycatch extension

(cherry picked from commit 3ea77c7)
This commit is contained in:
Gina Häußge 2015-11-20 11:46:28 +01:00
parent 162c4f11dd
commit 5126fc1093

View file

@ -681,7 +681,7 @@ class Server(object):
import re
app.jinja_env.add_extension("jinja2.ext.do")
app.jinja_env.add_extension("octoprint.server.util.jinja.trycatch")
app.jinja_env.add_extension("octoprint.util.jinja.trycatch")
def regex_replace(s, find, replace):
return re.sub(find, replace, s)