This commit is contained in:
Анатолий Богомолов 2024-04-12 20:19:39 +10:00
parent 16dc839a1f
commit da4dddbcf7
2 changed files with 4 additions and 4 deletions

View File

@ -66,7 +66,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, UserKickedError, UsernameInvalidError) as e: except (UserChannelsTooMuchError, UsersTooMuchError, UserIsBlockedError, YouBlockedUserError, ValueError, UserKickedError, UsernameInvalidError) as e:
raise IgnoreException(e) raise IgnoreException(e)
@logger.catch(reraise=True) @logger.catch(reraise=True)

View File

@ -25,7 +25,7 @@ class PaperParser:
for user in users: for user in users:
try: try:
if task.is_aborted(): if task.is_aborted():
return self.users_to_delete return
await self.client.invite_user(user, group) await self.client.invite_user(user, group)
@ -50,7 +50,7 @@ class PaperParser:
for user in users: for user in users:
try: try:
if task.is_aborted(): if task.is_aborted():
return self.users_to_delete return
await self.client.send_message(user, message, file) await self.client.send_message(user, message, file)