Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pyrogram/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,9 @@ async def handle_download(self, packet):
if isinstance(e, asyncio.CancelledError):
raise e

if isinstance(e, pyrogram.errors.FloodWait):
raise e

return None
else:
if in_memory:
Expand Down Expand Up @@ -1017,6 +1020,8 @@ async def get_file(
await cdn_session.stop()
except pyrogram.StopTransmission:
raise
except pyrogram.errors.FloodWait:
raise
except Exception as e:
log.exception(e)
finally:
Expand Down