Changed error page to display logout route in case of unconfigured

This commit is contained in:
Ozzie Isaacs
2021-05-28 13:56:07 +02:00
parent b0f48b7f00
commit 1b7e422772
3 changed files with 448 additions and 1965 deletions
+2
View File
@@ -35,6 +35,7 @@ def error_http(error):
error_code="Error {0}".format(error.code),
error_name=error.name,
issue=False,
unconfigured=not config.db_configured,
instance=config.config_calibre_web_title
), error.code
@@ -44,6 +45,7 @@ def internal_error(error):
error_code="Internal Server Error",
error_name=str(error),
issue=True,
unconfigured=False,
error_stack=traceback.format_exc().split("\n"),
instance=config.config_calibre_web_title
), 500