]> git.bitcoin.ninja Git - youtube-dl/commitdiff
Use u instead of str in Python 2
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 27 Nov 2012 22:06:49 +0000 (23:06 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 27 Nov 2012 22:11:44 +0000 (23:11 +0100)
youtube_dl/InfoExtractors.py

index 85ffad18c61efce1431c07aabba3a56c3cfef56c..0bbe1a6b710a5fbe3dc6256153ff8305ce8c530b 100644 (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)