From a130bc6d024e9bfa3c7f8742f8bf5038b2c6e363 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Wed, 28 Nov 2012 00:13:40 +0100 Subject: [PATCH] One more except..as --- youtube_dl/InfoExtractors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.5