mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-26 00:10:47 +00:00
Use u instead of str in Python 2
This commit is contained in:
parent
18ea0cefc3
commit
1a84d8675b
1 changed files with 1 additions and 1 deletions
|
@ -1166,7 +1166,7 @@ def fetch_webpage(self, url):
|
||||||
self.report_download_webpage(url)
|
self.report_download_webpage(url)
|
||||||
webpage = urllib2.urlopen(request).read()
|
webpage = urllib2.urlopen(request).read()
|
||||||
except (urllib2.URLError, httplib.HTTPException, socket.error), err:
|
except (urllib2.URLError, httplib.HTTPException, socket.error), err:
|
||||||
self._downloader.trouble(u'ERROR: Unable to retrieve video webpage: %s' % str(err))
|
self._downloader.trouble(u'ERROR: Unable to retrieve video webpage: %s' % u(err))
|
||||||
return
|
return
|
||||||
except ValueError, err:
|
except ValueError, err:
|
||||||
self._downloader.trouble(u'ERROR: Invalid URL: %s' % url)
|
self._downloader.trouble(u'ERROR: Invalid URL: %s' % url)
|
||||||
|
|
Loading…
Reference in a new issue