summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2019-05-07 11:56:39 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2019-05-07 11:56:39 +0100
commit47968963b1819341563dbf39c782a69a00bf1644 (patch)
tree203111ef745afefb2993396f610e9b416297731c
parent4e8800f9548363234f291998b365d45f32384183 (diff)
downloadslixmpp-47968963b1819341563dbf39c782a69a00bf1644.tar.gz
slixmpp-47968963b1819341563dbf39c782a69a00bf1644.tar.bz2
slixmpp-47968963b1819341563dbf39c782a69a00bf1644.tar.xz
slixmpp-47968963b1819341563dbf39c782a69a00bf1644.zip
Revert part of previous commit. Return NotImplemented when object is not a valid JID
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 caa9c174..c6a8047c 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