Skip to content

Commit

Permalink
Update download_aria_p_n.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamajay52 authored Jun 27, 2020
1 parent 23a5325 commit f260021
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tobrot/helper_funcs/download_aria_p_n.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,11 +444,13 @@ async def check_progress_for_dl(aria2, gid, event, previous_message):
previous_message = msg
else:
msg = file.error_message
await asyncio.sleep(EDIT_SLEEP_TIME_OUT)
await event.edit(f"`{msg}`")
return False
await asyncio.sleep(EDIT_SLEEP_TIME_OUT)
await check_progress_for_dl(aria2, gid, event, previous_message)
else:
await asyncio.sleep(EDIT_SLEEP_TIME_OUT)
await event.edit(f"File Downloaded Successfully: `{file.name}`")
return True
except Exception as e:
Expand Down

0 comments on commit f260021

Please sign in to comment.