diff options
author | Tulio Casagrande <tcasagra@thoughtworks.com> | 2017-03-09 19:25:37 -0300 |
---|---|---|
committer | Tulio Casagrande <tcasagra@thoughtworks.com> | 2017-03-09 19:25:37 -0300 |
commit | e779ecd3be6bfe45f2bd082e890e1c600785e676 (patch) | |
tree | 250843bbcb4670109b2c5670f8e9013d32c3c8ff /client/src/leap/soledad | |
parent | c1966cd7cfa27445f2a09501709dc66a18d79058 (diff) |
[bug] secrets version defaults to v1
Diffstat (limited to 'client/src/leap/soledad')
-rw-r--r-- | client/src/leap/soledad/client/_secrets/crypto.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |