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:
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)
@logger.catch(reraise=True)

View File

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