mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 14:14:54 +01:00
HTTPError is in urllib.error in Python 3, not in http.error
This commit is contained in:
parent
2eabb80254
commit
0e283428f7
|
@ -61,7 +61,7 @@
|
|||
import httplib as compat_http_client
|
||||
|
||||
try:
|
||||
from http.error import HTTPError as compat_HTTPError
|
||||
from urllib.error import HTTPError as compat_HTTPError
|
||||
except ImportError: # Python 2
|
||||
from urllib2 import HTTPError as compat_HTTPError
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user