From: Jaime Marquínez Ferrándiz Date: Tue, 31 Dec 2013 12:44:57 +0000 (+0100) Subject: [http] Fix ‘err’ variable not being assigned in an except block (#2045) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=7976fcac5573bf4592d0e7369231cd59672baf7a;p=youtube-dl [http] Fix ‘err’ variable not being assigned in an except block (#2045) --- diff --git a/youtube_dl/downloader/http.py b/youtube_dl/downloader/http.py index 14b88efd3..8407727ba 100644 --- a/youtube_dl/downloader/http.py +++ b/youtube_dl/downloader/http.py @@ -133,7 +133,7 @@ class HttpFD(FileDownloader): 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