1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

Make exception handling 2.5-compatible (Closes #223)

This commit is contained in:
Philipp Hagemeister 2011-11-22 15:31:30 +01:00
parent 468c99257c
commit dc0a294a73

View file

@ -3507,7 +3507,7 @@ class SoundcloudIE(InfoExtractor):
if mobj: if mobj:
try: try:
upload_date = datetime.datetime.strptime(mobj.group(1), '%B %d, %Y %H:%M').strftime('%Y%m%d') 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) print str(e)
# for soundcloud, a request to a cross domain is required for cookies # for soundcloud, a request to a cross domain is required for cookies