1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-11-02 23:55:13 +00:00

[networking] Always add unsupported suffix on version mismatch (#12626)

Authored by: Grub4K
This commit is contained in:
Simon Sawicki
2025-03-16 12:45:44 +01:00
committed by GitHub
parent e67d786c7c
commit 95f8df2f79
2 changed files with 3 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ import websockets.version
websockets_version = tuple(map(int_or_none, websockets.version.version.split('.')))
if websockets_version < (13, 0):
websockets._yt_dlp__version = f'{websockets.version.version} (unsupported)'
raise ImportError('Only websockets>=13.0 is supported')
import websockets.sync.client