mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Fixed error pages
This commit is contained in:
parent
d3c3c1fc4c
commit
e5536ba384
@ -27,7 +27,6 @@ resources = [
|
||||
"web/*/*/*",
|
||||
"web/*/*",
|
||||
"web/*",
|
||||
"static/*/*",
|
||||
"data_files/*/*",
|
||||
"data_files/*/*/*",
|
||||
"*/*.py",
|
||||
|
@ -93,7 +93,7 @@ def mainpage():
|
||||
def customerror(error):
|
||||
code = int(str(error).split(",")[0][1:])
|
||||
|
||||
template = jinjaenv.get_template('error.jinja')
|
||||
template = jinja_environment.get_template('error.jinja')
|
||||
res = template.render(errorcode=code)
|
||||
return res
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user