Commits

rg3  committed fbd1170

Abort download in case of error writing file data to disk

  • Participants
  • Parent commits aa4798e

Comments (0)

Files changed (1)

 			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