Show More
@@ -59,8 +59,10 b' class SessionRootHandler(IPythonHandler):' | |||||
59 | msg = ("The '%s' kernel is not available. Please pick another " |
|
59 | msg = ("The '%s' kernel is not available. Please pick another " | |
60 | "suitable kernel instead, or install that kernel." % kernel_name) |
|
60 | "suitable kernel instead, or install that kernel." % kernel_name) | |
61 | status_msg = 'Kernel not found' |
|
61 | status_msg = 'Kernel not found' | |
62 | msg = dict(full=msg, short=status_msg) |
|
62 | self.log.warn('Kernel not found: %s' % kernel_name) | |
63 | raise web.HTTPError(501, json.dumps(msg)) |
|
63 | self.set_status(501) | |
|
64 | self.finish(json.dumps(dict(message=msg, short_message=status_msg))) | |||
|
65 | return | |||
64 |
|
66 | |||
65 | location = url_path_join(self.base_url, 'api', 'sessions', model['id']) |
|
67 | location = url_path_join(self.base_url, 'api', 'sessions', model['id']) | |
66 | self.set_header('Location', url_escape(location)) |
|
68 | self.set_header('Location', url_escape(location)) |
General Comments 0
You need to be logged in to leave comments.
Login now