0
0
Fork 0

Merge pull request #2725 from foolscap/subtitles-error-fix

Fix subtitle download error reporting (Fixes #2724)
main
Philipp Hagemeister 2014-04-09 10:16:06 +02:00
commit f983c44199
1 changed files with 1 additions and 1 deletions

2
youtube_dl/YoutubeDL.py 100644 → 100755
View File

@ -936,7 +936,7 @@ class YoutubeDL(object):
with io.open(encodeFilename(sub_filename), 'w', encoding='utf-8') as subfile:
subfile.write(sub)
except (OSError, IOError):
self.report_error('Cannot write subtitles file ' + descfn)
self.report_error('Cannot write subtitles file ' + sub_filename)
return
if self.params.get('writeinfojson', False):