diff options
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/leap/soledad/client/api.py | 3 | ||||
-rw-r--r-- | client/src/leap/soledad/client/encdecpool.py | 3 | ||||
-rw-r--r-- | client/src/leap/soledad/client/secrets.py | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/client/src/leap/soledad/client/api.py b/client/src/leap/soledad/client/api.py index a1588aa9..33eae2c4 100644 --- a/client/src/leap/soledad/client/api.py +++ b/client/src/leap/soledad/client/api.py @@ -311,7 +311,8 @@ class Soledad(object): sync_exchange_phase = 0 if getattr(self._dbsyncer, 'syncer', None): if getattr(self._dbsyncer.syncer, 'sync_exchange_phase', None): - sync_exchange_phase = self._dbsyncer.syncer.sync_exchange_phase[0] + _p = self._dbsyncer.syncer.sync_exchange_phase[0] + sync_exchange_phase = _p return sync_phase, sync_exchange_phase # diff --git a/client/src/leap/soledad/client/encdecpool.py b/client/src/leap/soledad/client/encdecpool.py index 7e807dcf..a6d49b21 100644 --- a/client/src/leap/soledad/client/encdecpool.py +++ b/client/src/leap/soledad/client/encdecpool.py @@ -378,7 +378,8 @@ class SyncDecrypterPool(SyncEncryptDecryptPool): has finished. :rtype: twisted.internet.defer.Deferred """ - ensure_sync_id_column = "ALTER TABLE %s ADD COLUMN sync_id" % self.TABLE_NAME + ensure_sync_id_column = ("ALTER TABLE %s ADD COLUMN sync_id" % + self.TABLE_NAME) d = self._runQuery(ensure_sync_id_column) def empty_received_docs(_): diff --git a/client/src/leap/soledad/client/secrets.py b/client/src/leap/soledad/client/secrets.py index c35b881e..3547a711 100644 --- a/client/src/leap/soledad/client/secrets.py +++ b/client/src/leap/soledad/client/secrets.py @@ -441,7 +441,8 @@ class SoledadSecrets(object): if secret_id not in self._secrets: try: self._secrets[secret_id] = \ - self._decrypt_storage_secret_version_1(encrypted_secret) + self._decrypt_storage_secret_version_1( + encrypted_secret) secret_count += 1 except SecretsException as e: logger.error("Failed to decrypt storage secret: %s" |