mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-01 12:05:26 +02:00
Apply for legacy framing too for safe measure
This commit is contained in:
parent
c2718e7ff5
commit
6dcc99ee4a
@ -47,9 +47,11 @@
|
||||
|
||||
# Disable apply_mask C implementation
|
||||
# Seems to help reduce "Fatal Python error: Aborted" in CI
|
||||
import websockets.frames
|
||||
import websockets.utils
|
||||
websockets.frames.apply_mask = websockets.utils.apply_mask
|
||||
with contextlib.suppress(Exception):
|
||||
import websockets.frames
|
||||
import websockets.legacy.framing
|
||||
import websockets.utils
|
||||
websockets.frames.apply_mask = websockets.legacy.framing = websockets.utils.apply_mask
|
||||
|
||||
import websockets.sync.client
|
||||
from websockets.uri import parse_uri
|
||||
|
Loading…
Reference in New Issue
Block a user