diff options
author | lovetox <philipp@hoerist.com> | 2020-05-26 23:26:04 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2020-05-26 23:26:04 +0300 |
commit | ab9c8f040aec946386f6c876ca75ee20c7631014 (patch) | |
tree | d4e93ed101829ce87375c991bfb73063adcdd049 | |
parent | 123d35d638b72ba7314ce0ee16570c1bacc09543 (diff) |
MUC: Add None check
-rw-r--r-- | nbxmpp/modules/muc.py | 3 |
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) |