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
diff options
context:
space:
mode:
-rw-r--r--nbxmpp/modules/muc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nbxmpp/modules/muc.py b/nbxmpp/modules/muc.py
index 7ebf98d..b417339 100644
--- a/nbxmpp/modules/muc.py
+++ b/nbxmpp/modules/muc.py
@@ -161,7 +161,8 @@ class MUC(BaseModule):
self._log.warning(stanza)
raise NodeProcessed
- if (properties.muc_user.role.is_none and
+ if (properties.muc_user is not None and
+ properties.muc_user.role.is_none and
not properties.type.is_unavailable):
self._log.warning('Malformed Stanza')
self._log.warning(stanza)