diff --git a/notebook/base/handlers.py b/notebook/base/handlers.py index d5a7382516..696bdd00f0 100755 --- a/notebook/base/handlers.py +++ b/notebook/base/handlers.py @@ -467,8 +467,10 @@ def write_error(self, status_code, **kwargs): e = exc_info[1] if isinstance(e, HTTPError): reply['message'] = e.log_message or message + reply['reason'] = e.reason else: reply['message'] = 'Unhandled error' + reply['reason'] = None reply['traceback'] = ''.join(traceback.format_exception(*exc_info)) self.log.warning(reply['message']) self.finish(json.dumps(reply))