Philipp Hörist pushed to branch master at gajim / python-nbxmpp


Commits:
ed895375 by Philipp Hörist at 2019-12-11T20:14:53Z
OMEMO: Correctly parse empty devicelist nodes

Fixes #94

- - - - -


1 changed file:

- nbxmpp/modules/omemo.py


Changes:

=====================================
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)



View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/commit/ed895375da7c8c4471c385cd78193b7953c2c83c

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/commit/ed895375da7c8c4471c385cd78193b7953c2c83c
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to