summaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/downloader
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <[email protected]>2013-12-31 13:44:57 +0100
committerJaime Marquínez Ferrándiz <[email protected]>2013-12-31 13:44:57 +0100
commit7976fcac5573bf4592d0e7369231cd59672baf7a (patch)
treed9d71a8151a6f7a3155ba41b26f9934a83ce054a /youtube_dl/downloader
parente9f9a10fba9d9c41eb72dc603ef186300bf5f304 (diff)
downloadyoutube-dl-7976fcac5573bf4592d0e7369231cd59672baf7a.tar.gz
youtube-dl-7976fcac5573bf4592d0e7369231cd59672baf7a.zip
[http] Fix ‘err’ variable not being assigned in an except block (#2045)
Diffstat (limited to 'youtube_dl/downloader')
-rw-r--r--youtube_dl/downloader/http.py2
1 files changed, 1 insertions, 1 deletions
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