From 88db537027e41280f43ba661325051a1f04055f1 Mon Sep 17 00:00:00 2001 From: Georg Lukas Date: Thu, 18 Nov 2021 10:42:09 +0100 Subject: [PATCH] fix: do not crash on bookmarks without a nickname --- poezio/windows/bookmark_forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poezio/windows/bookmark_forms.py b/poezio/windows/bookmark_forms.py index 4ec1259e..a0e57cc7 100644 --- a/poezio/windows/bookmark_forms.py +++ b/poezio/windows/bookmark_forms.py @@ -38,7 +38,7 @@ class BookmarkJIDInput(FieldInput, Input): jid = JID(field.jid) except InvalidJID: jid = JID('') - jid.resource = field.nick or '' + jid.resource = field.nick or None self.text = jid.full self.pos = 0 self.view_pos = 0