Skip to content

Commit 1108d7b

Browse files
committed
Remove custom error handler
1 parent bebe3a5 commit 1108d7b

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

01-Login/server.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@
1818
app.secret_key = env.get("APP_SECRET_KEY")
1919

2020

21-
@app.errorhandler(Exception)
22-
def handle_auth_error(ex):
23-
response = jsonify(message=str(ex))
24-
response.status_code = ex.code if isinstance(ex, HTTPException) else 500
25-
return response
26-
27-
2821
def fetch_token(name, request):
2922
token = OAuth2Token.find(name=name, user=request.user)
3023
return token.to_token()

0 commit comments

Comments
 (0)