summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2017-03-20 21:34:02 -0300
committerdrebs <drebs@leap.se>2017-04-04 18:27:36 +0200
commit10c1ad72f1b6ea3feea6e731c426c2957bbce03f (patch)
treee33de5dba59afad338bb3a68cdc2788dfaa9c83e
parent6f6382bdfa9aac9181b45789e8fa4683111d180c (diff)
[bug] check status code on upload
-rw-r--r--client/src/leap/soledad/client/_blobs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/leap/soledad/client/_blobs.py b/client/src/leap/soledad/client/_blobs.py
index 2a3a28df..a8d9e139 100644
--- a/client/src/leap/soledad/client/_blobs.py
+++ b/client/src/leap/soledad/client/_blobs.py
@@ -211,7 +211,8 @@ class BlobManager(object):
crypter = BlobEncryptor(doc_info, fd, secret=self.secret,
armor=False)
fd = yield crypter.encrypt()
- yield self._client.put(uri, data=fd)
+ response = yield self._client.put(uri, data=fd)
+ assert response.code == 200
logger.info("Finished upload: %s" % (blob_id,))
@defer.inlineCallbacks