From f64800949cd9031cafff33419d5e83991b15725f Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Mon, 7 Oct 2024 12:13:01 +0300 Subject: [PATCH] fix: change pop to remove --- src/karkas_blocks/karkas_blocks/standard/welcome/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/karkas_blocks/karkas_blocks/standard/welcome/main.py b/src/karkas_blocks/karkas_blocks/standard/welcome/main.py index 98fdec7..c72ad97 100644 --- a/src/karkas_blocks/karkas_blocks/standard/welcome/main.py +++ b/src/karkas_blocks/karkas_blocks/standard/welcome/main.py @@ -100,7 +100,7 @@ async def left_member_handler(event: "ChatMemberUpdated", bot: Bot): task = verification_tasks.get(key) await task.end(success=False) - verification_tasks.pop((user_id, chat_id), None) + verification_tasks.remove(key_from_user_chat(user_id, chat_id)) async def verify_timeout(task: BaseTask):