From 7c32fc0b09df120dd79bfbc76331cc37ba8f33ad Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Mon, 21 Feb 2022 16:04:59 +0700 Subject: [PATCH] [check] exception name --- driver/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/driver/utils.py b/driver/utils.py index 796431d..bac2a5d 100644 --- a/driver/utils.py +++ b/driver/utils.py @@ -75,7 +75,8 @@ async def skip_current_song(chat_id): ) pop_an_item(chat_id) return [songname, link, type] - except: + except BaseException as error: + print(error) await calls.leave_group_call(chat_id) await remove_active_chat(chat_id) clear_queue(chat_id)