diff --git a/slixmpp/stanza/message.py b/slixmpp/stanza/message.py index 5a3432a6..7b033e37 100644 --- a/slixmpp/stanza/message.py +++ b/slixmpp/stanza/message.py @@ -93,7 +93,7 @@ class Message(RootStanza): self.xml.attrib['id'] = value - if not self.stream.use_origin_id: + if self.stream and not self.stream.use_origin_id: return None sub = self.xml.find(ORIGIN_NAME)