Added user kicked exception
This commit is contained in:
parent
7d5a085294
commit
66454b6197
|
@ -25,6 +25,7 @@ from telethon.errors.rpcerrorlist import (
|
||||||
UserIsBlockedError,
|
UserIsBlockedError,
|
||||||
YouBlockedUserError,
|
YouBlockedUserError,
|
||||||
UsernameInvalidError,
|
UsernameInvalidError,
|
||||||
|
UserKickedError
|
||||||
)
|
)
|
||||||
|
|
||||||
class PaperClient(TelegramClient):
|
class PaperClient(TelegramClient):
|
||||||
|
@ -64,7 +65,7 @@ class PaperClient(TelegramClient):
|
||||||
except (PeerFloodError, FloodWaitError) as e:
|
except (PeerFloodError, FloodWaitError) as e:
|
||||||
raise FloodException(e)
|
raise FloodException(e)
|
||||||
|
|
||||||
except (UserChannelsTooMuchError, UsersTooMuchError, UserIsBlockedError, YouBlockedUserError) as e:
|
except (UserChannelsTooMuchError, UsersTooMuchError, UserIsBlockedError, YouBlockedUserError, UserKickedError, UsernameInvalidError) as e:
|
||||||
raise IgnoreException(e)
|
raise IgnoreException(e)
|
||||||
|
|
||||||
@logger.catch(reraise=True)
|
@logger.catch(reraise=True)
|
||||||
|
|
Loading…
Reference in New Issue