summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slixmpp/stanza/message.py2
1 files changed, 1 insertions, 1 deletions
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)