qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject [13/50] [abbrv] qpid-proton git commit: PROTON-997: Peel HandlerExceptions if they contain a python exception
Date Fri, 23 Oct 2015 14:36:15 GMT
PROTON-997: Peel HandlerExceptions if they contain a python exception

fixup for commit a82681a4 that was a bit too eager


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/f6444b2a
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/f6444b2a
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/f6444b2a

Branch: refs/heads/go1
Commit: f6444b2a10550485c363a5bfcd3f5fc1c11f3e22
Parents: 6091e9e
Author: Bozo Dragojevic <bozzo@digiverse.si>
Authored: Thu Oct 8 17:40:28 2015 +0200
Committer: Bozo Dragojevic <bozzo@digiverse.si>
Committed: Thu Oct 8 17:54:24 2015 +0200

----------------------------------------------------------------------
 proton-j/src/main/resources/creactor.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/f6444b2a/proton-j/src/main/resources/creactor.py
----------------------------------------------------------------------
diff --git a/proton-j/src/main/resources/creactor.py b/proton-j/src/main/resources/creactor.py
index 51f7cdc..95fd020 100644
--- a/proton-j/src/main/resources/creactor.py
+++ b/proton-j/src/main/resources/creactor.py
@@ -68,9 +68,7 @@ def peel_handler_exception(meth):
         return meth()
     except HandlerException, he:
         cause = he.cause
-        if hasattr(cause, "value"):
-            cause = cause.value
-        t = type(cause)
+        t = getattr(cause, "type", cause.__class__)
         info = sys.exc_info()
         _compat.raise_(t, cause, info[2]) 
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message