mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[websocket] Make syntax error in websockets module non-fatal
				
					
				
			Closes #2633
This commit is contained in:
		| @@ -5,9 +5,12 @@ import threading | ||||
|  | ||||
| try: | ||||
|     import websockets | ||||
|     has_websockets = True | ||||
| except ImportError: | ||||
| except (ImportError, SyntaxError): | ||||
|     # websockets 3.10 on python 3.6 causes SyntaxError | ||||
|     # See https://github.com/yt-dlp/yt-dlp/issues/2633 | ||||
|     has_websockets = False | ||||
| else: | ||||
|     has_websockets = True | ||||
|  | ||||
| from .common import FileDownloader | ||||
| from .external import FFmpegFD | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan