summaryrefslogtreecommitdiff
path: root/keymanager
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2013-11-21 12:12:31 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2013-11-21 12:12:31 -0300
commit5be02926efeb775e652c217ade02250b0cc7e3ca (patch)
tree588cb79d393581140eadb496e0c94850aff155b4 /keymanager
parent49cd309bb0d206fe7bcd0a12b7fcc0199de7b65b (diff)
Do not check for a valid address, rely on client.
An email address regexp that supports all (or almost) emails is really complex, and is_address uses a simpler one since we restrict the valid usernames and provider names. For that we rely on the email client to check whether the email address is valid or not.
Diffstat (limited to 'keymanager')
-rw-r--r--keymanager/src/leap/keymanager/openpgp.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/keymanager/src/leap/keymanager/openpgp.py b/keymanager/src/leap/keymanager/openpgp.py
index f6223d57..0c11d17b 100644
--- a/keymanager/src/leap/keymanager/openpgp.py
+++ b/keymanager/src/leap/keymanager/openpgp.py
@@ -297,7 +297,6 @@ class OpenPGPScheme(EncryptionScheme):
:rtype: OpenPGPKey
@raise KeyNotFound: If the key was not found on local storage.
"""
- leap_assert(is_address(address), 'Not an user address: %s' % address)
doc = self._get_key_doc(address, private)
if doc is None:
raise errors.KeyNotFound(address)