Merge pull request #1947 from takluyver/i1940

Ensure variable is set if exc_info is falsey
This commit is contained in:
Kyle Kelley 2016-12-04 14:35:51 -08:00 committed by GitHub
commit db8d711b50

View File

@ -359,6 +359,7 @@ class IPythonHandler(AuthenticatedHandler):
exc_info = kwargs.get('exc_info')
message = ''
status_message = responses.get(status_code, 'Unknown HTTP Error')
exception = '(unknown)'
if exc_info:
exception = exc_info[1]
# get the custom message, if defined