0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-27 03:03:01 +00:00

[http] Fix ‘err’ variable not being assigned in an except block (#2045)

This commit is contained in:
Jaime Marquínez Ferrándiz 2013-12-31 13:44:57 +01:00
parent e9f9a10fba
commit 7976fcac55

View file

@ -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