From: Philipp Hagemeister Date: Tue, 22 Nov 2011 14:31:30 +0000 (+0100) Subject: Make exception handling 2.5-compatible (Closes #223) X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=dc0a294a7370b0eb55a36a0ac231b18e09877eeb;p=youtube-dl.git Make exception handling 2.5-compatible (Closes #223) --- 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