Skip to content

Commit

Permalink
Timer needs to be started (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
TommasoAmici committed Jun 12, 2021
1 parent 5abaa14 commit a4c3b5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def get_url(submission: Submission) -> Optional[str]:
except DownloadError:
# When it fails downloading it may be the case that video
# wasn't ready yet, let's try again in a minute (#5)
threading.Timer(60.0, process_submission, [submission])
timer = threading.Timer(60.0, process_submission, [submission])
timer.start()
except Exception as e:
logger.error(e)
return None
Expand Down

0 comments on commit a4c3b5a

Please # to comment.