Commit 92b6173d authored by Philipp Hörist's avatar Philipp Hörist

OpenPGP: Dont fail on empty keylist

Fixes #68
parent e83b5d4d
......@@ -128,6 +128,9 @@ class OpenPGP:
@staticmethod
def _parse_keylist(jid, item):
if item is None:
return []
keylist_node = item.getTag('public-keys-list', namespace=NS_OPENPGP)
if keylist_node is None:
raise StanzaMalformed('No public-keys-list node found')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment