fixed an error in the unauthorized/accessdenied handler
All checks were successful
Linter / Lint (3.11) (push) Successful in 40s
Docker Build / Build (push) Successful in 25s

This commit is contained in:
Seaswimmer 2023-11-25 17:31:26 -05:00
parent 1c0517fc4b
commit aa795319c5
Signed by: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -45,7 +45,7 @@ def callback():
@app.errorhandler(Unauthorized) @app.errorhandler(Unauthorized)
@app.errorhandler(AccessDenied) @app.errorhandler(AccessDenied)
def redirect_unauthorized(): def redirect_unauthorized(e): # pylint: disable=unused-argument
return redirect(url_for(".index")) return redirect(url_for(".index"))
if __name__ == '__main__': if __name__ == '__main__':