mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 09:01:43 +00:00
One more except..as
This commit is contained in:
parent
348d0a7a18
commit
a130bc6d02
@ -2851,8 +2851,8 @@ 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, e:
|
||||
self._downloader.to_stderr(compat_str(e))
|
||||
except Exception as err:
|
||||
self._downloader.to_stderr(compat_str(err))
|
||||
|
||||
# for soundcloud, a request to a cross domain is required for cookies
|
||||
request = compat_urllib_request.Request('http://media.soundcloud.com/crossdomain.xml', std_headers)
|
||||
|
Loading…
Reference in New Issue
Block a user