key error if wrong/invalid JID #4

Closed
opened 2024-08-03 20:51:31 +02:00 by mirux · 2 comments

KeyError: 'clear mirux@mi.de'
ERROR 'clear mirux@mi.de'
Traceback (most recent call last):
File "/usr/local/kaikout/.venv/lib/python3.11/site-packages/slixmpp/xmlstream/xmlstream.py", line 1107, in handler_callback_routine
await cb(data)
File "/usr/local/kaikout/.venv/lib/python3.11/site-packages/kaikout/xmpp/client.py", line 170, in on_message
await XmppChat.process_message(self, message)
File "/usr/local/kaikout/.venv/lib/python3.11/site-packages/kaikout/xmpp/chat.py", line 502, in process_message
response = str(self.settings[room]['scores'][jid_bare])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^

KeyError: 'clear mirux@mi.de' ERROR 'clear mirux@mi.de' Traceback (most recent call last): File "/usr/local/kaikout/.venv/lib/python3.11/site-packages/slixmpp/xmlstream/xmlstream.py", line 1107, in handler_callback_routine await cb(data) File "/usr/local/kaikout/.venv/lib/python3.11/site-packages/kaikout/xmpp/client.py", line 170, in on_message await XmppChat.process_message(self, message) File "/usr/local/kaikout/.venv/lib/python3.11/site-packages/kaikout/xmpp/chat.py", line 502, in process_message response = str(self.settings[room]['scores'][jid_bare]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
Author

type scores mmm@test.de (which does not exist)
KeyError: 'mmm@test.de'
ERROR 'mmm@test.de'
Traceback (most recent call last):
File "/usr/local/kaikout/.venv/lib/python3.11/site-packages/slixmpp/xmlstream/xmlstream.py", line 1107, in handler_callback_routine
await cb(data)
File "/usr/local/kaikout/.venv/lib/python3.11/site-packages/kaikout/xmpp/client.py", line 170, in on_message
await XmppChat.process_message(self, message)
File "/usr/local/kaikout/.venv/lib/python3.11/site-packages/kaikout/xmpp/chat.py", line 502, in process_message
response = str(self.settings[room]['scores'][jid_bare])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
KeyError: 'mmm@test.de'

type scores mmm@test.de (which does not exist) KeyError: 'mmm@test.de' ERROR 'mmm@test.de' Traceback (most recent call last): File "/usr/local/kaikout/.venv/lib/python3.11/site-packages/slixmpp/xmlstream/xmlstream.py", line 1107, in handler_callback_routine await cb(data) File "/usr/local/kaikout/.venv/lib/python3.11/site-packages/kaikout/xmpp/client.py", line 170, in on_message await XmppChat.process_message(self, message) File "/usr/local/kaikout/.venv/lib/python3.11/site-packages/kaikout/xmpp/chat.py", line 502, in process_message response = str(self.settings[room]['scores'][jid_bare]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^ KeyError: 'mmm@test.de'
Owner

Done.

7ca023011a

Done. https://git.xmpp-it.net/sch/KaikOut/commit/7ca023011adfe6cc11576a7a15aa0bf86721a1bf
sch closed this issue 2024-09-15 16:05:57 +02:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: sch/KaikOut#4
No description provided.