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:
		| @@ -389,7 +389,7 @@ else: | ||||
|                 stdout=subprocess.PIPE, stderr=subprocess.PIPE) | ||||
|             out, err = sp.communicate() | ||||
|             lines, columns = map(int, out.split()) | ||||
|         except: | ||||
|         except Exception: | ||||
|             pass | ||||
|         return _terminal_size(columns, lines) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jaime Marquínez Ferrándiz
					Jaime Marquínez Ferrándiz