summaryrefslogtreecommitdiff
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/leap/soledad/client/_secrets/crypto.py2
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)