From c1966cd7cfa27445f2a09501709dc66a18d79058 Mon Sep 17 00:00:00 2001 From: Tulio Casagrande Date: Thu, 9 Mar 2017 17:28:22 -0300 Subject: [bug] add default version when decrypting secrets Resolves: https://0xacab.org/leap/soledad/issues/8788 --- client/src/leap/soledad/client/_secrets/crypto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/src/leap') diff --git a/client/src/leap/soledad/client/_secrets/crypto.py b/client/src/leap/soledad/client/_secrets/crypto.py index fa7aaca0..afa80034 100644 --- a/client/src/leap/soledad/client/_secrets/crypto.py +++ b/client/src/leap/soledad/client/_secrets/crypto.py @@ -72,7 +72,7 @@ class SecretsCrypto(object): # def decrypt(self, data): - version = data.get('version') + version = data.get('version', 1) method = getattr(self, '_decrypt_v%d' % version) try: return method(data) -- cgit v1.2.3