aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime “pep” Buquet2019-05-07 10:56:39 (GMT)
committerMaxime “pep” Buquet2019-05-07 10:56:39 (GMT)
commit47968963b1819341563dbf39c782a69a00bf1644 (patch)
tree203111ef745afefb2993396f610e9b416297731c
parent4e8800f9548363234f291998b365d45f32384183 (diff)
downloadslixmpp-master.tar.gz
slixmpp-master.tar.xz
Revert part of previous commit. Return NotImplemented when object is not a valid JIDHEADrefs/keep-around/47968963b1819341563dbf39c782a69a00bf1644master
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-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