Jelajahi Sumber

Make exception handling 2.5-compatible (Closes #223)

Philipp Hagemeister 13 tahun lalu
induk
melakukan
dc0a294a73
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      youtube_dl/__init__.py

+ 1 - 1
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