From e779ecd3be6bfe45f2bd082e890e1c600785e676 Mon Sep 17 00:00:00 2001 From: Tulio Casagrande Date: Thu, 9 Mar 2017 19:25:37 -0300 Subject: [bug] secrets version defaults to v1 --- client/src/leap/soledad/client/_secrets/crypto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') diff --git a/client/src/leap/soledad/client/_secrets/crypto.py b/client/src/leap/soledad/client/_secrets/crypto.py index afa80034..8148151d 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', 1) + version = data.setdefault('version', 1) method = getattr(self, '_decrypt_v%d' % version) try: return method(data) -- cgit v1.2.3