summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/bitmask/keymanager/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/bitmask/keymanager/__init__.py b/src/leap/bitmask/keymanager/__init__.py
index 6818417..5a76761 100644
--- a/src/leap/bitmask/keymanager/__init__.py
+++ b/src/leap/bitmask/keymanager/__init__.py
@@ -215,7 +215,7 @@ class KeyManager(object):
validation_level = ValidationLevels.Provider_Trust
yield self.put_raw_key(
- server_keys[OPENPGP_KEY],
+ server_keys[self.OPENPGP_KEY],
address=address,
validation=validation_level)
@@ -636,7 +636,7 @@ class KeyManager(object):
existing = yield self.get_key(address, fetch_remote=False)
except KeyNotFound:
existing = None
- if (existing is not None or
+ if (existing is None or
pubkey.fingerprint != existing.fingerprint):
raise keymanager_errors.KeyNotValidUpgrade(
"Cannot update your %s key without the private part"