Changeset c31431d74e04…
Parent 69d182a2f133…
by
Changes to one file · Browse files at c31431d74e04 Showing diff from parent 69d182a2f133 Diff from another changeset...
@@ -1091,9 +1091,10 @@ chunks = self.filechunks[wfile]
else:
chunks = self.read_file_chunks(wfile)
- for c in chunks:
- c.active = True
- self.filechunks[wfile] = chunks
+ if chunks:
+ for c in chunks:
+ c.active = True
+ self.filechunks[wfile] = chunks
for i, chunk in enumerate(chunks):
if i == 0:
chunk.write(buf)
|
Loading...