0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-27 03:03:01 +00:00

Import HTTPErrorProcessor from the correct module (Closes #696)

This commit is contained in:
Philipp Hagemeister 2013-02-21 16:49:05 +01:00
parent c8cd8e5f55
commit 7c038b3c32

View file

@ -1330,7 +1330,7 @@ def http_error_405(self, req, fp, code, msg, headers):
opener = compat_urllib_request.OpenerDirector()
for handler in [compat_urllib_request.HTTPHandler, compat_urllib_request.HTTPDefaultErrorHandler,
HTTPMethodFallback, HEADRedirectHandler,
compat_urllib_error.HTTPErrorProcessor, compat_urllib_request.HTTPSHandler]:
compat_urllib_request.HTTPErrorProcessor, compat_urllib_request.HTTPSHandler]:
opener.add_handler(handler())
response = opener.open(HeadRequest(url))