aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--slixmpp/jid.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/slixmpp/jid.py b/slixmpp/jid.py
index caa9c17..c6a8047 100644
--- a/slixmpp/jid.py
+++ b/slixmpp/jid.py
@@ -425,8 +425,8 @@ class JID:
if not isinstance(other, JID):
try:
other = JID(other)
- except:
- return False
+ except InvalidJid:
+ return NotImplemented
return (self._node == other._node and
self._domain == other._domain and