aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/InfoExtractors.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2012-11-28 00:13:40 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2012-11-28 00:13:40 +0100
commita130bc6d024e9bfa3c7f8742f8bf5038b2c6e363 (patch)
tree4f0ab17c638152826a4aa331b608830b375dfb53 /youtube_dl/InfoExtractors.py
parent348d0a7a18fd4aa2512418b8be48f5011fbd3f99 (diff)
One more except..as
Diffstat (limited to 'youtube_dl/InfoExtractors.py')
-rw-r--r--youtube_dl/InfoExtractors.py4
1 files 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)