mirror of
https://source.netsyms.com/Mirrors/youtube-dl
synced 2026-05-21 21:39:23 +00:00
Don't use bare 'except:'
They catch any exception, including KeyboardInterrupt, we don't want to catch it.
This commit is contained in:
@@ -52,7 +52,7 @@ class YouPornIE(InfoExtractor):
|
||||
webpage, 'JSON parameters')
|
||||
try:
|
||||
params = json.loads(json_params)
|
||||
except:
|
||||
except ValueError:
|
||||
raise ExtractorError('Invalid JSON')
|
||||
|
||||
self.report_extraction(video_id)
|
||||
|
||||
Reference in New Issue
Block a user