diff --git a/youtube_dl/downloader/http.py b/youtube_dl/downloader/http.py index 14b88efd3d..8407727ba4 100644 --- a/youtube_dl/downloader/http.py +++ b/youtube_dl/downloader/http.py @@ -133,7 +133,7 @@ def real_download(self, filename, info_dict): return False try: stream.write(data_block) - except (IOError, OSError): + except (IOError, OSError) as err: self.to_stderr(u"\n") self.report_error(u'unable to write data: %s' % str(err)) return False