Skip to content
Snippets Groups Projects
Commit 9d3090a6 authored by Ambrus Simon's avatar Ambrus Simon Committed by GitHub
Browse files

Merge pull request #816 from scitran/improve-base-requesthandler-exc-handling

use handle_exception in base.RequestHandler.__init__
parents a2bdabb0 68a02269
No related branches found
No related tags found
No related merge requests found
......@@ -49,13 +49,8 @@ class RequestHandler(webapp2.RequestHandler):
self.initialization_auth(site_id)
except webapp2.HTTPException:
raise
except Exception: # pylint: disable=broad-except
tb = traceback.format_exc()
self.request.logger.error(tb)
self.abort(500, 'Unexpected error.')
except Exception as e: # pylint: disable=broad-except
self.handle_exception(e, self.app.debug)
def initialize(self, request, response):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment