mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-10-30 21:20:34 +00:00
c365dba843
No actual changes - code is only moved around
10 lines
287 B
Python
10 lines
287 B
Python
import http.client
|
|
import socket
|
|
import ssl
|
|
import urllib.error
|
|
|
|
network_exceptions = [urllib.error.URLError, http.client.HTTPException, socket.error]
|
|
if hasattr(ssl, 'CertificateError'):
|
|
network_exceptions.append(ssl.CertificateError)
|
|
network_exceptions = tuple(network_exceptions)
|