Browse Source

One more except..as

rtmp_test
Philipp Hagemeister 12 years ago
parent
commit
a130bc6d02
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      youtube_dl/InfoExtractors.py

+ 2
- 2
youtube_dl/InfoExtractors.py View File

@ -2851,8 +2851,8 @@ 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, 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 # 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) request = compat_urllib_request.Request('http://media.soundcloud.com/crossdomain.xml', std_headers)


Loading…
Cancel
Save