mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-24 07:40:30 +01:00
Make exception handling 2.5-compatible (Closes #223)
This commit is contained in:
parent
468c99257c
commit
dc0a294a73
@ -3507,7 +3507,7 @@ def _real_extract(self, url):
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user