One more except..as
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 27 Nov 2012 23:13:40 +0000 (00:13 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 27 Nov 2012 23:13:40 +0000 (00:13 +0100)
youtube_dl/InfoExtractors.py

index 8726e943896b0c4b2fdde130eaceb2d22050ed8e..f64b88d55c187c7c9dfa9ef874136e3fbb98387c 100644 (file)
@@ -2851,8 +2851,8 @@ class SoundcloudIE(InfoExtractor):
                if mobj:
                        try:
                                upload_date = datetime.datetime.strptime(mobj.group(1), '%B %d, %Y %H:%M').strftime('%Y%m%d')
-                       except Exception, e:
-                               self._downloader.to_stderr(compat_str(e))
+                       except Exception as err:
+                               self._downloader.to_stderr(compat_str(err))
 
                # for soundcloud, a request to a cross domain is required for cookies
                request = compat_urllib_request.Request('http://media.soundcloud.com/crossdomain.xml', std_headers)