1
0
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:
Krateng 2020-08-31 00:08:55 +02:00
parent d3c3c1fc4c
commit e5536ba384
2 changed files with 1 additions and 2 deletions

View File

@ -27,7 +27,6 @@ resources = [
"web/*/*/*",
"web/*/*",
"web/*",
"static/*/*",
"data_files/*/*",
"data_files/*/*/*",
"*/*.py",

View File

@ -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