Remove Thumbnails table

Daddy PyLint not happy with me
This commit is contained in:
Michał Gdula 2023-03-26 23:34:03 +00:00
parent db20ce7919
commit 3331edf24d
7 changed files with 104 additions and 144 deletions

View file

@ -69,14 +69,13 @@ def create_app(test_config=None):
# Error handlers
@app.errorhandler(Exception)
def error_page(err):
# If the error is a HTTP error, return the error page
if isinstance(err, HTTPException):
error = err.code
msg = err.description
return render_template('error.html', error=error, msg=msg), err.code
# If the error is not an HTTPException, return a 500 error
if not isinstance(err, HTTPException):
abort(500)
# Otherwise this an internal error
abort(500)
error = err.code
msg = err.description
return render_template('error.html', error=error, msg=msg), err.code
# Load login, registration and logout manager
from gallery import auth