summaryrefslogtreecommitdiff
path: root/src/leap/soledad/client/_db/blobs.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/soledad/client/_db/blobs.py')
-rw-r--r--src/leap/soledad/client/_db/blobs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/leap/soledad/client/_db/blobs.py b/src/leap/soledad/client/_db/blobs.py
index 73f011c2..afa4c79f 100644
--- a/src/leap/soledad/client/_db/blobs.py
+++ b/src/leap/soledad/client/_db/blobs.py
@@ -352,7 +352,7 @@ class BlobManager(object):
try:
yield self._encrypt_and_upload(blob_id, fd)
yield self.local.update_sync_status(blob_id, SyncStatus.SYNCED)
- except Exception, e:
+ except Exception as e:
yield self.local.increment_retries(blob_id)
_, retries = yield self.local.get_sync_status(blob_id)
if retries > self.max_retries:
@@ -398,7 +398,7 @@ class BlobManager(object):
yield self.refresh_sync_status_from_server(namespace)
yield self.fetch_missing(namespace)
yield self.send_missing(namespace)
- except defer.FirstError, e:
+ except defer.FirstError as e:
e.subFailure.raiseException()
@defer.inlineCallbacks
@@ -550,7 +550,7 @@ class BlobManager(object):
yield treq.collect(response, buf.write)
try:
fd, size = buf.close()
- except InvalidBlob, e:
+ except InvalidBlob as e:
_, retries = yield self.local.get_sync_status(blob_id)
message = "Corrupted blob received from server! ID: %s\n"
message += "Retries: %s - Attempts left: %s\n"