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:
authorlovetox <philipp@hoerist.com>2020-05-26 23:26:04 +0300
committerlovetox <philipp@hoerist.com>2020-05-26 23:26:04 +0300
commitab9c8f040aec946386f6c876ca75ee20c7631014 (patch)
treed4e93ed101829ce87375c991bfb73063adcdd049
parent123d35d638b72ba7314ce0ee16570c1bacc09543 (diff)
MUC: Add None check
-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)