summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2017-10-04 16:07:06 -0300
committerdrebs <drebs@riseup.net>2017-10-05 09:43:40 -0300
commitc6d41cf4fcac293a0e7ff09593d2a3c53c052174 (patch)
tree8ce5618a5364767a263c2ed7f62955f1f3a89241
parent3b3652a915032609dcf458676b4bb85762e6b687 (diff)
[bug] log the exception on blob download error
-rw-r--r--src/leap/soledad/client/_db/blobs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/soledad/client/_db/blobs.py b/src/leap/soledad/client/_db/blobs.py
index 0848c0b7..972c5389 100644
--- a/src/leap/soledad/client/_db/blobs.py
+++ b/src/leap/soledad/client/_db/blobs.py
@@ -553,11 +553,12 @@ class BlobManager(object):
except InvalidBlob as e:
_, retries = yield self.local.get_sync_status(blob_id)
message = "Corrupted blob received from server! ID: %s\n"
+ message += "Error: %r\n"
message += "Retries: %s - Attempts left: %s\n"
message += "There is a chance of tampering. If this problem "
message += "persists, please check your connection then report to "
message += "your provider sysadmin and submit a bug report."
- message = message % (blob_id, retries, self.max_retries - retries)
+ message %= (blob_id, e, retries, self.max_retries - retries)
logger.error(message)
yield self.local.increment_retries(blob_id)
if (retries + 1) >= self.max_retries: