From: Ricardo Garcia Date: Thu, 12 Aug 2010 16:41:29 +0000 (+0200) Subject: Abort download in case of error writing file data to disk X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=d67e097462e238f47bc9203e5bba0e5120e7f5f9;p=youtube-dl Abort download in case of error writing file data to disk --- diff --git a/youtube-dl b/youtube-dl index 727fadea4..fb231ae40 100755 --- a/youtube-dl +++ b/youtube-dl @@ -594,7 +594,8 @@ class FileDownloader(object): try: stream.write(data_block) except (IOError, OSError), err: - self.trouble('\nERROR: unable to write data: %s' % str(err)) + self.trouble(u'\nERROR: unable to write data: %s' % str(err)) + return False block_size = self.best_block_size(after - before, data_block_len) # Progress message