summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slixmpp/jid.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/slixmpp/jid.py b/slixmpp/jid.py
index cb9512b8..caa9c174 100644
--- a/slixmpp/jid.py
+++ b/slixmpp/jid.py
@@ -423,7 +423,10 @@ class JID:
if isinstance(other, UnescapedJID):
return False
if not isinstance(other, JID):
- other = JID(other)
+ try:
+ other = JID(other)
+ except:
+ return False
return (self._node == other._node and
self._domain == other._domain and