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:
Maxime “pep” Buquet 2019-05-07 11:56:39 +01:00
parent 4e8800f954
commit 47968963b1
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -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