summaryrefslogtreecommitdiff
path: root/service/pixelated/bitmask_libraries
diff options
context:
space:
mode:
Diffstat (limited to 'service/pixelated/bitmask_libraries')
-rw-r--r--service/pixelated/bitmask_libraries/nicknym.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/service/pixelated/bitmask_libraries/nicknym.py b/service/pixelated/bitmask_libraries/nicknym.py
index 810161ee..826ecb58 100644
--- a/service/pixelated/bitmask_libraries/nicknym.py
+++ b/service/pixelated/bitmask_libraries/nicknym.py
@@ -40,11 +40,14 @@ class NickNym(object):
@defer.inlineCallbacks
def _key_exists(self, email):
try:
- yield self.keymanager.get_key(email, openpgp.OpenPGPKey, private=True, fetch_remote=False)
+ yield self.fetch_key(email, private=True, fetch_remote=False)
defer.returnValue(True)
except KeyNotFound:
defer.returnValue(False)
+ def fetch_key(self, email, private=False, fetch_remote=True):
+ return self.keymanager.get_key(email, openpgp.OpenPGPKey, private=private, fetch_remote=fetch_remote)
+
def _gen_key(self):
return self.keymanager.gen_key(openpgp.OpenPGPKey)