Revert part of previous commit. Return NotImplemented when object is not a valid JID
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
4e8800f954
commit
47968963b1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user