use gen.Return for Python 2

Min RK 12 years ago
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…
Cancel
Save