Import HTTPErrorProcessor from the correct module (Closes #696)
authorPhilipp Hagemeister <phihag@phihag.de>
Thu, 21 Feb 2013 15:49:05 +0000 (16:49 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Thu, 21 Feb 2013 15:49:05 +0000 (16:49 +0100)
youtube_dl/InfoExtractors.py

index 415aacd026a8d25a0fb1ba3ade62863397d37538..23bd21af51a3d64ccf987c5ba5f8fb89d8d0902a 100755 (executable)
@@ -1330,7 +1330,7 @@ class GenericIE(InfoExtractor):
         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))