From: Philipp Hagemeister Date: Tue, 27 Nov 2012 23:13:40 +0000 (+0100) Subject: One more except..as X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=a130bc6d024e9bfa3c7f8742f8bf5038b2c6e363;p=youtube-dl One more except..as --- diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index 8726e9438..f64b88d55 100644 --- a/youtube_dl/InfoExtractors.py +++ b/youtube_dl/InfoExtractors.py @@ -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)