diff options
author | Philipp Hörist <philipp@hoerist.com> | 2019-12-11 23:14:53 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2019-12-11 23:14:53 +0300 |
commit | ed895375da7c8c4471c385cd78193b7953c2c83c (patch) | |
tree | 1fe3f106d55799ef2628d598b75067007d7f46f6 /nbxmpp | |
parent | 9fe5483eb06a6fbf7c80eefd64b6b47988fbb6c1 (diff) |
OMEMO: Correctly parse empty devicelist nodes
Fixes #94
Diffstat (limited to 'nbxmpp')
-rw-r--r-- | nbxmpp/modules/omemo.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nbxmpp/modules/omemo.py b/nbxmpp/modules/omemo.py index 596d208..8a531b1 100644 --- a/nbxmpp/modules/omemo.py +++ b/nbxmpp/modules/omemo.py @@ -209,6 +209,8 @@ class OMEMO: pubsub_node = stanza.getTag('pubsub') items_node = pubsub_node.getTag('items') item = items_node.getTag('item') + if item is None: + return None try: return self._parse_devicelist(item) |