Skip to content

Commit

Permalink
Implements #566
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Sep 2, 2024
1 parent c1291fb commit b0c38de
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,6 @@ def home():
else:
session['gravatar'] = utils.avatar(account_info_json['sub'], 26)
else:
return render_template('error_pages/500.html', support_email=app.config.get('SUPPORT_EMAIL'),
support_link=app.config.get('SUPPORT_LINK'),
support_link_name=app.config.get('SUPPORT_LINK_NAME')), 500
flash("Error getting User info: \n" + account_info.text, 'error')
return render_template('home.html', oidc_name=settings.oidcName)

Expand Down Expand Up @@ -1561,8 +1558,8 @@ def page_not_found(error):
def internal_server_error(error):
app.logger.error('Server Error: %s', (error))
return render_template('error_pages/500.html', support_email=app.config.get('SUPPORT_EMAIL'),
support_link=app.config.get('SUPPORT_LINK'),
support_link_name=app.config.get('SUPPORT_LINK_NAME')), 500
support_link=app.config.get('SUPPORT_LINK'),
support_link_name=app.config.get('SUPPORT_LINK_NAME')), 500

@app.errorhandler(CSRFError)
def handle_csrf_error(e):
Expand Down

0 comments on commit b0c38de

Please sign in to comment.