Ensure variable is set if exc_info is falsey

Closes gh-1940
pull/1947/head
Thomas Kluyver 10 years ago
parent 27a2c50adb
commit 283042c675

@ -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

Loading…
Cancel
Save