From ed48667738335c0f54f0e522c684231f2b740403 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Wed, 25 Oct 2017 13:16:08 -0300 Subject: [style] E722 do not use bare except --- src/leap/soledad/client/_db/adbapi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/leap/soledad/client/_db/adbapi.py') diff --git a/src/leap/soledad/client/_db/adbapi.py b/src/leap/soledad/client/_db/adbapi.py index 5c28d108..7deb0feb 100644 --- a/src/leap/soledad/client/_db/adbapi.py +++ b/src/leap/soledad/client/_db/adbapi.py @@ -275,11 +275,11 @@ class U1DBConnectionPool(adbapi.ConnectionPool): trans.close() conn.commit() return result - except: + except Exception: excType, excValue, excTraceback = sys.exc_info() try: conn.rollback() - except: + except Exception: logger.error(None, "Rollback failed") compat.reraise(excValue, excTraceback) -- cgit v1.2.3