mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 02:42:30 +00:00
[compat] Correct socket error class reference
This commit is contained in:
parent
d5bb814d34
commit
8ad6b5ed9f
@ -329,7 +329,7 @@ def compat_socket_create_connection(address, timeout, source_address=None):
|
|||||||
if err is not None:
|
if err is not None:
|
||||||
raise err
|
raise err
|
||||||
else:
|
else:
|
||||||
raise error("getaddrinfo returns an empty list")
|
raise socket.error("getaddrinfo returns an empty list")
|
||||||
else:
|
else:
|
||||||
compat_socket_create_connection = socket.create_connection
|
compat_socket_create_connection = socket.create_connection
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user