From 7976fcac5573bf4592d0e7369231cd59672baf7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Marqui=CC=81nez=20Ferra=CC=81ndiz?= Date: Tue, 31 Dec 2013 13:44:57 +0100 Subject: [PATCH] =?UTF-8?q?[http]=20Fix=20=E2=80=98err=E2=80=99=20variable?= =?UTF-8?q?=20not=20being=20assigned=20in=20an=20except=20block=20(#2045)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- youtube_dl/downloader/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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