From 4e8800f9548363234f291998b365d45f32384183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Tue, 7 May 2019 10:08:46 +0100 Subject: jid: return not equal if value can't be converted to JID MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- slixmpp/jid.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/slixmpp/jid.py b/slixmpp/jid.py index cb9512b8..caa9c174 100644 --- a/slixmpp/jid.py +++ b/slixmpp/jid.py @@ -423,7 +423,10 @@ class JID: if isinstance(other, UnescapedJID): return False if not isinstance(other, JID): - other = JID(other) + try: + other = JID(other) + except: + return False return (self._node == other._node and self._domain == other._domain and -- cgit v1.2.3