mirror of
https://github.com/ytdl-org/youtube-dl/
synced 2025-12-24 02:42:37 +01:00
HTTPError is in urllib.error in Python 3, not in http.error
This commit is contained in:
@@ -61,7 +61,7 @@ except ImportError: # Python 2
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user