From dc0a294a7370b0eb55a36a0ac231b18e09877eeb Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Tue, 22 Nov 2011 15:31:30 +0100 Subject: [PATCH] Make exception handling 2.5-compatible (Closes #223) --- youtube_dl/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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