From 528913b2206de9466ca9a3901be6bd3d3bb700ab Mon Sep 17 00:00:00 2001 From: Marian Beermann Date: Tue, 19 Apr 2016 09:18:46 +0200 Subject: [PATCH] Fix #945 --- borg/archive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borg/archive.py b/borg/archive.py index 0ac565c4a..31e3c0571 100644 --- a/borg/archive.py +++ b/borg/archive.py @@ -95,7 +95,7 @@ def flush(self, flush=False): for chunk in chunks[:end]: self.chunks.append(self.write_chunk(chunk)) if end == -1: - self.buffer.write(chunks[-1]) + self.buffer.write(chunks[-1].data) def is_full(self): return self.buffer.tell() > self.BUFFER_SIZE