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 9ed1621..1af5720 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