diff options
author | Kali Kaneko <kali@leap.se> | 2017-04-24 00:57:50 +0200 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2017-04-24 00:57:55 +0200 |
commit | 2d4468af5484ab96dbee42837ba03e3d91ee7828 (patch) | |
tree | cb1fad20163924ee839ef08359c27c4ffac10351 /client | |
parent | a052c150ae1276f643e3b6e049e45571fe1a7b70 (diff) |
[bug] fix improper re-raising of exception
it was passing way too many arguments in py2.
- Resolves: #8843
Diffstat (limited to 'client')
-rw-r--r-- | client/src/leap/soledad/client/adbapi.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/leap/soledad/client/adbapi.py b/client/src/leap/soledad/client/adbapi.py index a60970c0..b002055e 100644 --- a/client/src/leap/soledad/client/adbapi.py +++ b/client/src/leap/soledad/client/adbapi.py @@ -25,6 +25,7 @@ from functools import partial from twisted.enterprise import adbapi from twisted.internet.defer import DeferredSemaphore +from twisted.python import compat from zope.proxy import ProxyBase, setProxiedObject from leap.soledad.common.log import getLogger @@ -279,7 +280,7 @@ class U1DBConnectionPool(adbapi.ConnectionPool): conn.rollback() except: logger.error(None, "Rollback failed") - raise excType(excValue, excTraceback) + compat.reraise(excValue, excTraceback) def finalClose(self): """ |