Skip to content

Commit

Permalink
fix: no access html
Browse files Browse the repository at this point in the history
  • Loading branch information
supermandee committed Dec 15, 2024
1 parent 5f4a2bb commit 9663574
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,11 @@ def callback():

return redirect(url_for('chat'))


except requests.exceptions.RequestException as e:
logger.error(f"Token request failed: {str(e)}")
return f"Token request failed: {str(e)}", 500
#return f"Token request failed: {str(e)}", 500
return render_template('no_access.html')


except KeyError as e:
logger.error(f"Missing required session key: {str(e)}")
Expand Down

0 comments on commit 9663574

Please sign in to comment.