diff --git a/webcompat/views.py b/webcompat/views.py index 5e84b2644..ac80018a9 100644 --- a/webcompat/views.py +++ b/webcompat/views.py @@ -7,7 +7,6 @@ import json import urllib -from flask.ext.github import GitHubError from flask import abort from flask import flash from flask import g @@ -44,8 +43,7 @@ 404: 'Not Found. Lost in Punk Cat Space', 429: 'Cool your jets! Please wait {0} seconds before making' 'another search.', - 500: 'Internal Server Error', - 'GitHubError': 'Something bad happened. Please try again?'} + 500: 'Internal Server Error'} @app.teardown_appcontext @@ -296,15 +294,6 @@ def cssfixme(): '''Route for CSS Fix me tool''' return render_template('cssfixme.html') - -@app.errorhandler(GitHubError) -def jumpship(e): - print('jumpship! ', e) - session.pop('user_id', None) - flash(ERROR_DICT['GitHubError'], 'error') - return redirect(url_for('index')) - - @app.errorhandler(400) @app.errorhandler(401) @app.errorhandler(403)