diff --git a/thriftpy2/thrift.py b/thriftpy2/thrift.py index 381595a1..99aa6a3c 100644 --- a/thriftpy2/thrift.py +++ b/thriftpy2/thrift.py @@ -319,6 +319,8 @@ def process(self, iprot, oprot): try: result.success = call() + except TApplicationException as e: + return self.send_exception(oprot, api, e, seqid) except Exception as e: # raise if api don't have throws if not self.handle_exception(e, result):