1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-11-20 19:02:56 +08:00

Use u instead of str in Python 2

This commit is contained in:
Philipp Hagemeister 2012-11-27 23:06:49 +01:00
parent 18ea0cefc3
commit 1a84d8675b

View File

@ -1166,7 +1166,7 @@ class ArteTvIE(InfoExtractor):
self.report_download_webpage(url)
webpage = urllib2.urlopen(request).read()
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
except ValueError, err:
self._downloader.trouble(u'ERROR: Invalid URL: %s' % url)