diff options
author | Victor Shyba <victor1984@riseup.net> | 2017-10-25 13:16:08 -0300 |
---|---|---|
committer | Victor Shyba <victor1984@riseup.net> | 2017-10-27 16:01:48 -0300 |
commit | ed48667738335c0f54f0e522c684231f2b740403 (patch) | |
tree | 5ee6cd775877e444bd44a12bc9fda14737eb32c5 /src/leap/soledad/server | |
parent | 99658eb24a2cd2bb2c23147a837f9402c11de160 (diff) |
[style] E722 do not use bare except
Diffstat (limited to 'src/leap/soledad/server')
-rw-r--r-- | src/leap/soledad/server/_blobs.py | 2 | ||||
-rw-r--r-- | src/leap/soledad/server/session.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/soledad/server/_blobs.py b/src/leap/soledad/server/_blobs.py index 22277fc4..55ef0d86 100644 --- a/src/leap/soledad/server/_blobs.py +++ b/src/leap/soledad/server/_blobs.py @@ -136,7 +136,7 @@ class FilesystemBlobsBackend(object): os.unlink(blob_path) try: os.unlink(blob_path + '.flags') - except: + except Exception: pass def get_blob_size(user, blob_id, namespace=''): diff --git a/src/leap/soledad/server/session.py b/src/leap/soledad/server/session.py index 8f0e4639..786ea031 100644 --- a/src/leap/soledad/server/session.py +++ b/src/leap/soledad/server/session.py @@ -117,7 +117,7 @@ class SoledadSession(HTTPAuthSessionWrapper): credentials = self._credentialFactory.decode(auth_data, request) except error.LoginFailed: return UnauthorizedResource() - except: + except Exception: # If you port this to the newer log facility, be aware that # the tests rely on the error to be logged. log.err(None, "Unexpected failure from credentials factory") |