From 573733bc81a5cfa0d11337cb288ab04d71b0cc0e Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Wed, 6 Sep 2017 04:04:41 +0200 Subject: [PATCH] fixup: only works for local repos --- src/borg/archiver.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/borg/archiver.py b/src/borg/archiver.py index 9e8b97427..3b468db15 100644 --- a/src/borg/archiver.py +++ b/src/borg/archiver.py @@ -1469,7 +1469,9 @@ class Archiver: repository.put(Manifest.MANIFEST_ID, data) # usually, a 0 byte (open for writing) segment file would be visible in the filesystem here. # we write and close this file, to rather have a valid segment file on disk, before invoking the subprocess. - repository.io.close_segment() + # we can only do this for local repositories (with .io), though: + if hasattr(repository, 'io'): + repository.io.close_segment() try: # we exit with the return code we get from the subprocess return subprocess.call([args.command] + args.args)