summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slixmpp/plugins/xep_0045/stanza.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/slixmpp/plugins/xep_0045/stanza.py b/slixmpp/plugins/xep_0045/stanza.py
index 2e1a1f8e..c3ae82bb 100644
--- a/slixmpp/plugins/xep_0045/stanza.py
+++ b/slixmpp/plugins/xep_0045/stanza.py
@@ -29,7 +29,7 @@ class MUCBase(ElementBase):
item = self.xml.find(f'{{{NS_USER}}}item')
if item is None:
return default
- return item.get(attr)
+ return item.get(attr, default)
def set_item_attr(self, attr, value: str):
item = self.xml.find(f'{{{NS_USER}}}item')