fixed missing exception
Browse files- scripts/pytube +2 -2
scripts/pytube
CHANGED
@@ -7,7 +7,7 @@ import argparse
|
|
7 |
|
8 |
from pytube import YouTube
|
9 |
from pytube.utils import print_status, FullPaths
|
10 |
-
from pytube.exceptions import
|
11 |
from pprint import pprint
|
12 |
|
13 |
|
@@ -33,7 +33,7 @@ def main():
|
|
33 |
ext = video.extension
|
34 |
res = video.resolution
|
35 |
videos.append("{} {}".format(ext, res))
|
36 |
-
except
|
37 |
print("Incorrect video URL.")
|
38 |
sys.exit(1)
|
39 |
|
|
|
7 |
|
8 |
from pytube import YouTube
|
9 |
from pytube.utils import print_status, FullPaths
|
10 |
+
from pytube.exceptions import PytubeError
|
11 |
from pprint import pprint
|
12 |
|
13 |
|
|
|
33 |
ext = video.extension
|
34 |
res = video.resolution
|
35 |
videos.append("{} {}".format(ext, res))
|
36 |
+
except PytubeError:
|
37 |
print("Incorrect video URL.")
|
38 |
sys.exit(1)
|
39 |
|