Skip to content

Commit

Permalink
floodwait with username
Browse files Browse the repository at this point in the history
  • Loading branch information
DeekshithSH committed May 10, 2024
1 parent b9f1b39 commit 97023a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions WebStreamer/utils/custom_dl.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from typing import Dict, Union
from WebStreamer.bot import StreamBot, work_loads
from pyrogram import Client, utils, raw
from pyrogram.errors import FloodWait
from .file_properties import get_file_ids
from pyrogram.session import Session, Auth
from pyrogram.errors import AuthBytesInvalid
Expand Down Expand Up @@ -189,6 +190,9 @@ async def yield_file(

except (TimeoutError, AttributeError):
pass
except FloodWait as e:
logging.error(f"{e} for client {client.username}")
raise e
finally:
work_loads[file_id.index] -= 1

Expand Down

0 comments on commit 97023a3

Please sign in to comment.