mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
use gen.Return for Python 2
This commit is contained in:
parent
dc70ae6b07
commit
41b548bacc
@ -375,7 +375,8 @@ def json_errors(method):
|
||||
reply = dict(message=message, reason=None, traceback=tb_text)
|
||||
self.finish(json.dumps(reply))
|
||||
else:
|
||||
return result
|
||||
# FIXME: can use regular return in generators in py3
|
||||
raise gen.Return(result)
|
||||
return wrapper
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user