summaryrefslogtreecommitdiff
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
commit3cafd7ef3f6578a3f45d0b0218b8ca6d388be6d3 (patch)
treeb1935654bb5ae5db7de241c5e911ee4decd09868
parentae80ea1f0a748c2746026bd1a17815d786722b84 (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.
-rw-r--r--src/leap/keymanager/openpgp.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/leap/keymanager/openpgp.py b/src/leap/keymanager/openpgp.py
index f6223d5..0c11d17 100644
--- a/src/leap/keymanager/openpgp.py
+++ b/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)