Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/nbxmpp
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2019-12-11 23:14:53 +0300
committerPhilipp Hörist <philipp@hoerist.com>2019-12-11 23:14:53 +0300
commited895375da7c8c4471c385cd78193b7953c2c83c (patch)
tree1fe3f106d55799ef2628d598b75067007d7f46f6 /nbxmpp
parent9fe5483eb06a6fbf7c80eefd64b6b47988fbb6c1 (diff)
OMEMO: Correctly parse empty devicelist nodes
Fixes #94
Diffstat (limited to 'nbxmpp')
-rw-r--r--nbxmpp/modules/omemo.py2
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)