|
@ -286,6 +286,7 @@ class FileDownloader(object): |
|
|
self._do_download(outstream, info_dict['url']) |
|
|
self._do_download(outstream, info_dict['url']) |
|
|
outstream.close() |
|
|
outstream.close() |
|
|
except (OSError, IOError), err: |
|
|
except (OSError, IOError), err: |
|
|
|
|
|
outstream.close() |
|
|
os.remove(filename) |
|
|
os.remove(filename) |
|
|
raise UnavailableFormatError |
|
|
raise UnavailableFormatError |
|
|
except (urllib2.URLError, httplib.HTTPException, socket.error), err: |
|
|
except (urllib2.URLError, httplib.HTTPException, socket.error), err: |
|
|