This commit is contained in:
taizan-hokuto
2020-09-12 00:48:40 +09:00
parent 11a9d0e2d7
commit 5f53fd24dd
3 changed files with 3 additions and 5 deletions

View File

@@ -57,7 +57,7 @@ def main():
else:
raise FileNotFoundError
err = None
for _ in range(3): # retry 3 times
for _ in range(3): # retry 3 times
try:
info = VideoInfo(video_id)
break

View File

@@ -43,7 +43,6 @@ class InvalidVideoIdException(Exception):
self.doc = doc
class UnknownConnectionError(Exception):
pass

View File

@@ -7,7 +7,6 @@ from typing import Tuple
class ExtractWorker:
"""
ExtractWorker associates a download session with a block.
When the worker finishes fetching, the block
being fetched is splitted and assigned the free worker.