Revert part of previous commit. Return NotImplemented when object is not a valid JID

Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <pep@bouah.net>
parent 4e8800f9
Pipeline #2062 passed with stages
in 1 minute and 12 seconds
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment