aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/facebook.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-12-20 07:00:39 +0600
committerSergey M․ <dstftw@gmail.com>2015-12-20 07:00:39 +0600
commit9b9c5355e4c0fe6f9028aaa3b1b8beb28a085433 (patch)
treea1c288b01778d4d8e0c661ed0766f149fb2532ba /youtube_dl/extractor/facebook.py
parentd890b4cc0ac6b88daa917a1a791afe7541cd0411 (diff)
downloadyoutube-dl-9b9c5355e4c0fe6f9028aaa3b1b8beb28a085433.tar.xz
Rename error_to_str to error_to_compat_str
Diffstat (limited to 'youtube_dl/extractor/facebook.py')
-rw-r--r--youtube_dl/extractor/facebook.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py
index 296d3dd77..39c481068 100644
--- a/youtube_dl/extractor/facebook.py
+++ b/youtube_dl/extractor/facebook.py
@@ -11,7 +11,7 @@ from ..compat import (
compat_urllib_parse_unquote,
)
from ..utils import (
- error_to_str,
+ error_to_compat_str,
ExtractorError,
limit_length,
sanitized_Request,
@@ -116,7 +116,7 @@ class FacebookIE(InfoExtractor):
if re.search(r'id="checkpointSubmitButton"', check_response) is not None:
self._downloader.report_warning('Unable to confirm login, you have to login in your brower and authorize the login.')
except (compat_urllib_error.URLError, compat_http_client.HTTPException, socket.error) as err:
- self._downloader.report_warning('unable to log in: %s' % error_to_str(err))
+ self._downloader.report_warning('unable to log in: %s' % error_to_compat_str(err))
return
def _real_initialize(self):