Devide exception handling

This commit is contained in:
taizan-hokuto
2020-09-04 01:52:53 +09:00
parent 235d6b7212
commit 3bdc465740

View File

@@ -76,9 +76,10 @@ def main():
print("\nThe extraction process has been completed.\n")
except InvalidVideoIdException:
print("Invalid Video ID or URL:", video_id)
except (TypeError, NoContents) as e:
except TypeError as e:
print(e.with_traceback())
except NoContents as e:
print(e)
except FileNotFoundError:
print("The specified directory does not exist.:{}".format(Arguments().output))
except JSONDecodeError as e: