Skip to content

Commit

Permalink
Merge branch 'master' of github.com:pillargg/youtube-upload
Browse files Browse the repository at this point in the history
  • Loading branch information
chand1012 committed Jan 18, 2021
2 parents a33d779 + 00d4001 commit bb5e216
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion youtube_upload/client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os
import sys
import time
import uuid

Expand Down Expand Up @@ -239,7 +240,7 @@ def _resumable_upload(self, insert_request, uploadThumbnail, options):
print(error)
retry += 1
if retry > self.max_retry:
exit("No longer attempting to retry.")
sys.exit("No longer attempting to retry.")

print("Sleeping 5 seconds and then retrying...")
time.sleep(5)
Expand Down

0 comments on commit bb5e216

Please sign in to comment.