1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Updated scrobbler

This commit is contained in:
Krateng
2020-09-04 16:36:35 +02:00
parent e8c316f199
commit 7c8b0dd7cb
4 changed files with 22 additions and 16 deletions

View File

@@ -239,7 +239,10 @@ def static_html(name):
lc["filterkeys"], lc["limitkeys"], lc["delimitkeys"], lc["amountkeys"], lc["specialkeys"] = uri_to_internal(keys)
template = jinja_environment.get_template(name + '.jinja')
res = template.render(**LOCAL_CONTEXT)
try:
res = template.render(**LOCAL_CONTEXT)
except ValueError as e:
abort(404,"Entity does not exist")
if settings.get_settings("DEV_MODE"): jinja_environment.cache.clear()