mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +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:
		| @@ -28,7 +28,7 @@ for test in get_testcases(): | ||||
|     if METHOD == 'EURISTIC': | ||||
|         try: | ||||
|             webpage = compat_urllib_request.urlopen(test['url'], timeout=10).read() | ||||
|         except: | ||||
|         except Exception: | ||||
|             print('\nFail: {0}'.format(test['name'])) | ||||
|             continue | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jaime Marquínez Ferrándiz
					Jaime Marquínez Ferrándiz