Skip to content

Commit 8f85f90

Browse files
rgbkrkminrk
authored andcommitted
Backport PR #1947: Ensure variable is set if exc_info is falsey
Closes gh-1940 Signed-off-by: Min RK <[email protected]>
1 parent 5c5c45f commit 8f85f90

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

notebook/base/handlers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ def write_error(self, status_code, **kwargs):
360360
exc_info = kwargs.get('exc_info')
361361
message = ''
362362
status_message = responses.get(status_code, 'Unknown HTTP Error')
363+
exception = '(unknown)'
363364
if exc_info:
364365
exception = exc_info[1]
365366
# get the custom message, if defined

0 commit comments

Comments
 (0)