bookmark: Add logging on InvalidJid

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2022-02-25 20:14:05 +01:00
parent f4185b7485
commit 8d178d9af8

View file

@ -533,6 +533,7 @@ class CommandCore:
room = jid.bare room = jid.bare
nick = jid.resource or None nick = jid.resource or None
except InvalidJID: except InvalidJID:
self.core.information(f'Invalid address for bookmark: {room}/{nick}', 'Error')
return return
bookmark = self.core.bookmarks[room] bookmark = self.core.bookmarks[room]