Make exception handling 2.5-compatible (Closes #223)
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 22 Nov 2011 14:31:30 +0000 (15:31 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 22 Nov 2011 14:31:30 +0000 (15:31 +0100)
youtube_dl/__init__.py

index 9ed1621865ae33fc85518c70044ceba4e23d9d3b..1af572071202252551cd5e4d1c34ca9ca6b40b1e 100755 (executable)
@@ -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