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):
|
if not isinstance(other, JID):
|
||||||
try:
|
try:
|
||||||
other = JID(other)
|
other = JID(other)
|
||||||
except:
|
except InvalidJid:
|
||||||
return False
|
return NotImplemented
|
||||||
|
|
||||||
return (self._node == other._node and
|
return (self._node == other._node and
|
||||||
self._domain == other._domain and
|
self._domain == other._domain and
|
||||||
|
Loading…
x
Reference in New Issue
Block a user