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:
		| @@ -1701,10 +1701,10 @@ class YoutubeDL(object): | ||||
|             out = out.decode().strip() | ||||
|             if re.match('[0-9a-f]+', out): | ||||
|                 self._write_string('[debug] Git HEAD: ' + out + '\n') | ||||
|         except: | ||||
|         except Exception: | ||||
|             try: | ||||
|                 sys.exc_clear() | ||||
|             except: | ||||
|             except Exception: | ||||
|                 pass | ||||
|         self._write_string('[debug] Python version %s - %s\n' % ( | ||||
|             platform.python_version(), platform_name())) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jaime Marquínez Ferrándiz
					Jaime Marquínez Ferrándiz