From 57924e959a074fbf1ce7dc15ee1282f7cf215887 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Mon, 28 Aug 2023 17:49:01 +0200 Subject: =?UTF-8?q?fix:=20Don=E2=80=99t=20expect=20localpart=20for=20bare?= =?UTF-8?q?=20JIDs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit RFC6120 defines a bare jid as or just --- nbxmpp/protocol.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/nbxmpp/protocol.py b/nbxmpp/protocol.py index 0ad8e9b..fe88984 100644 --- a/nbxmpp/protocol.py +++ b/nbxmpp/protocol.py @@ -654,8 +654,6 @@ class JID: localpart, domainpart = None, rest if force_bare: - if localpart is None: - raise LocalpartByteLimit resourcepart = None return cls(localpart=localpart, -- cgit v1.2.3