error deleting subscription 3 #5

Closed
opened 2024-06-01 00:00:41 +02:00 by mirux · 4 comments

Id 3 is created but cant be deleted:

Traceback (most recent call last):
File "/usr/local/bukubot/.venv/lib/python3.11/site-packages/slixmpp/xmlstream/xmlstream.py", line 1119, in event
handler_callback(data)
File "/usr/local/bukubot/.venv/lib/python3.11/site-packages/bukubot/xmpp/client.py", line 94, in process_message
Chat.action(self, message)
File "/usr/local/bukubot/.venv/lib/python3.11/site-packages/bukubot/xmpp/chat.py", line 51, in action
message_body = Chat.format_message(result, extended=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/bukubot/.venv/lib/python3.11/site-packages/bukubot/xmpp/chat.py", line 171, in format_message
idx = bookmark[0]
~~~~~~~~^^^
TypeError: 'NoneType' object is not subscriptable
ERROR No matching index 3

Id 3 is created but cant be deleted: Traceback (most recent call last): File "/usr/local/bukubot/.venv/lib/python3.11/site-packages/slixmpp/xmlstream/xmlstream.py", line 1119, in event handler_callback(data) File "/usr/local/bukubot/.venv/lib/python3.11/site-packages/bukubot/xmpp/client.py", line 94, in process_message Chat.action(self, message) File "/usr/local/bukubot/.venv/lib/python3.11/site-packages/bukubot/xmpp/chat.py", line 51, in action message_body = Chat.format_message(result, extended=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/bukubot/.venv/lib/python3.11/site-packages/bukubot/xmpp/chat.py", line 171, in format_message idx = bookmark[0] ~~~~~~~~^^^ TypeError: 'NoneType' object is not subscriptable ERROR No matching index 3
Owner

You should get this message ERROR No matching index 3.

What command did you send to the bot?

Please specify steps to reproduce.

You should get this message `ERROR No matching index 3`. What command did you send to the bot? Please specify steps to reproduce.
sch added the
Question
label 2024-06-02 14:56:00 +02:00
Author

Created bm 1 2 3 and deleted 1 2 and no 3 error meesage raised

Created bm 1 2 3 and deleted 1 2 and no 3 error meesage raised
Owner

I will check.

Please note that when an index is deleted, the last bookmark is replaced by the deleted index.

If 1 is deleted, the 3 becomes 1.

These are the errors that I have had:

ERROR    No matching index 3
ERROR    database is locked
ERROR    database is locked
ERROR    database is locked
I will check. Please note that when an index is deleted, the last bookmark is replaced by the deleted index. If 1 is deleted, the 3 becomes 1. These are the errors that I have had: ``` ERROR No matching index 3 ERROR database is locked ERROR database is locked ERROR database is locked ```
Owner

Duplicate of #4 fixed at e27e87c43b

Duplicate of #4 fixed at https://git.xmpp-it.net/sch/BukuBot/commit/e27e87c43b7b8306aad407c3d3f96bd76e1552b5
sch closed this issue 2024-06-02 17:55:13 +02:00
Sign in to join this conversation.
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/BukuBot#5
No description provided.