From 66454b61971104bc96af6431f100b0b51ed9db16 Mon Sep 17 00:00:00 2001 From: winet Date: Tue, 12 Mar 2024 19:49:06 +1000 Subject: [PATCH] Added user kicked exception --- paper/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paper/client.py b/paper/client.py index 8f9dcf6..38fa2e6 100644 --- a/paper/client.py +++ b/paper/client.py @@ -25,6 +25,7 @@ from telethon.errors.rpcerrorlist import ( UserIsBlockedError, YouBlockedUserError, UsernameInvalidError, + UserKickedError ) class PaperClient(TelegramClient): @@ -64,7 +65,7 @@ class PaperClient(TelegramClient): except (PeerFloodError, FloodWaitError) as e: raise FloodException(e) - except (UserChannelsTooMuchError, UsersTooMuchError, UserIsBlockedError, YouBlockedUserError) as e: + except (UserChannelsTooMuchError, UsersTooMuchError, UserIsBlockedError, YouBlockedUserError, UserKickedError, UsernameInvalidError) as e: raise IgnoreException(e) @logger.catch(reraise=True)