mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
Merge pull request #1947 from takluyver/i1940
Ensure variable is set if exc_info is falsey
This commit is contained in:
commit
db8d711b50
@ -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…
Reference in New Issue
Block a user