diff options
author | Victor Shyba <victor1984@riseup.net> | 2018-01-03 23:31:00 -0300 |
---|---|---|
committer | Victor Shyba <victor1984@riseup.net> | 2018-01-03 23:31:00 -0300 |
commit | 123f9ead4228c749f2d8d00fb755f46e568e5238 (patch) | |
tree | cc0512aa05e4f59ed420234e8df5e560a09cd0b2 /src/leap/soledad/client/_db/blobs | |
parent | 2fbf74283d94b946c0d4cdd837aa1a80e2546ebb (diff) |
[style] fix typos and add comments from review
Diffstat (limited to 'src/leap/soledad/client/_db/blobs')
-rw-r--r-- | src/leap/soledad/client/_db/blobs/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/leap/soledad/client/_db/blobs/__init__.py b/src/leap/soledad/client/_db/blobs/__init__.py index cacfe638..517cfad4 100644 --- a/src/leap/soledad/client/_db/blobs/__init__.py +++ b/src/leap/soledad/client/_db/blobs/__init__.py @@ -105,9 +105,11 @@ class DecrypterBuffer(object): real_size = self.decrypter.decrypted_content_size return self.decrypter.endStream(), real_size elif hasattr(self, 'raw_data'): - # Externally encrypted blob, see Incoming API specification + # blob was not symmetrically encrypted, see _make_decryptor() above return self.raw_data, self.raw_data.tell() else: + # the only case that can lead here is if the preamble was not + # completelly consumed by the pipe. msg = "Incomplete Blob: %s" % self.doc_info.doc_id raise RetriableTransferError(msg) |