From 437dd510d356bffb381a955c0887c4b9e63ae400 Mon Sep 17 00:00:00 2001 From: mars67857 Date: Sun, 15 Oct 2017 16:30:10 -0700 Subject: [PATCH] Only catch KeyError when accessing JSON dict --- youtube_dl/extractor/cammodels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/cammodels.py b/youtube_dl/extractor/cammodels.py index 5381ed674..28e20033b 100644 --- a/youtube_dl/extractor/cammodels.py +++ b/youtube_dl/extractor/cammodels.py @@ -71,7 +71,7 @@ class CamModelsIE(InfoExtractor): 'format_id': str(format.get('videoWidth')) }) # If they change the JSON format, then fallback to parsing out RTMP links via regex. - except: + except KeyError: manifest_json = json.dumps(manifest) manifest_links = re.finditer( r'(?Prtmp?:\/\/[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#&//=]*))',