mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-22 08:47:41 +00:00
[http] Fix ‘err’ variable not being assigned in an except block (#2045)
This commit is contained in:
parent
e9f9a10fba
commit
7976fcac55
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue