From c8efb165feccb031c6e2e57251eaa175fabbb9a7 Mon Sep 17 00:00:00 2001 From: microdog Date: Mon, 6 Jun 2016 13:02:05 +0800 Subject: [PATCH] Preserve traceback when re-raise undeclared exception --- thriftpy/thrift.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thriftpy/thrift.py b/thriftpy/thrift.py index 0cf0877..e5599ec 100644 --- a/thriftpy/thrift.py +++ b/thriftpy/thrift.py @@ -251,7 +251,7 @@ def handle_exception(self, e, result): setattr(result, exc_name, e) break else: - raise e + raise def process(self, iprot, oprot): api, seqid, result, call = self.process_in(iprot)