Skip to content

Commit

Permalink
Fix minor log spam
Browse files Browse the repository at this point in the history
  • Loading branch information
mjishnu committed Jun 18, 2024
1 parent dca19f0 commit 6a81729
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pypdl/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ async def worker(
if self.curr == size:
self.completed = True
else:
raise Exception(
f"Incorrect segment size: expected {size} bytes, received {self.curr} bytes"
)
if not self.interrupt.is_set():
raise Exception(
f"Incorrect segment size: expected {size} bytes, received {self.curr} bytes"
)

0 comments on commit 6a81729

Please sign in to comment.