Fix exception handling in async_wrapper

reviewable/pr18780/r1
Toshio Kuratomi 9 years ago
parent 1c41b6fdb2
commit f9b28aaae3

@ -202,11 +202,11 @@ if __name__ == '__main__':
except SystemExit:
# On python2.4, SystemExit is a subclass of Exception.
# This block makes python2.4 behave the same as python2.5+
e = get_exception()
e = sys.exc_info()[1]
sys.exit(e.code)
except Exception:
e = get_exception()
e = sys.exc_info()[1]
notice("error: %s"%(e))
print(json.dumps({
"failed" : True,

Loading…
Cancel
Save