summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Lukas <georg@op-co.de>2021-11-18 10:42:09 +0100
committerGeorg Lukas <georg@op-co.de>2021-12-11 19:25:11 +0100
commit88db537027e41280f43ba661325051a1f04055f1 (patch)
treee898573dd8206c70d0f14b3fb7721cfbc1a60edf
parent79bbbdb3e633152cc95e77a550f2eb2cde4e6784 (diff)
downloadpoezio-88db537027e41280f43ba661325051a1f04055f1.tar.gz
poezio-88db537027e41280f43ba661325051a1f04055f1.tar.bz2
poezio-88db537027e41280f43ba661325051a1f04055f1.tar.xz
poezio-88db537027e41280f43ba661325051a1f04055f1.zip
fix: do not crash on bookmarks without a nickname
-rw-r--r--poezio/windows/bookmark_forms.py2
1 files changed, 1 insertions, 1 deletions
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