aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/__init__.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2011-11-22 15:31:30 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2011-11-22 15:31:30 +0100
commitdc0a294a7370b0eb55a36a0ac231b18e09877eeb (patch)
tree68de19faf8efc53ed2273640215f5be357240316 /youtube_dl/__init__.py
parent468c99257ca43401413366e7dc4544d5cca28a36 (diff)
Make exception handling 2.5-compatible (Closes #223)
Diffstat (limited to 'youtube_dl/__init__.py')
-rwxr-xr-xyoutube_dl/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py
index 9ed162186..1af572071 100755
--- a/youtube_dl/__init__.py
+++ b/youtube_dl/__init__.py
@@ -3507,7 +3507,7 @@ 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 as e:
+ except Exception, e:
print str(e)
# for soundcloud, a request to a cross domain is required for cookies