A feature-rich command-line audio/video downloader
[http] Fix ‘err’ variable not being assigned in an except block (#2045)
Jaime Marquínez Ferrándiz7976fcac5573
diff --git a/youtube_dl/downloader/http.py b/youtube_dl/downloader/http.pyindex 14b88efd3d..8407727ba4 100644--- a/youtube_dl/downloader/http.py+++ b/youtube_dl/downloader/http.py@@ -133,7 +133,7 @@ class HttpFD(FileDownloader):return Falsetry: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