summaryrefslogtreecommitdiff
path: root/rdiff-backup/src/destructive_stepping.py
diff options
context:
space:
mode:
authorben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-05-17 20:50:34 +0000
committerben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-05-17 20:50:34 +0000
commitb7490436eb2a51749a33fe7c395bc961cfc633b4 (patch)
treee4c7b8015eeed3a681ffa946755799594f5fa827 /rdiff-backup/src/destructive_stepping.py
parentc3beb4a2425f1ca142f1c773ca8205399b48c993 (diff)
downloadrdiff-backup-b7490436eb2a51749a33fe7c395bc961cfc633b4.tar.gz
Added some error checking code, and a wrapper for easier profiling
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@89 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/src/destructive_stepping.py')
-rw-r--r--rdiff-backup/src/destructive_stepping.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/rdiff-backup/src/destructive_stepping.py b/rdiff-backup/src/destructive_stepping.py
index ff3b42a..0d0d529 100644
--- a/rdiff-backup/src/destructive_stepping.py
+++ b/rdiff-backup/src/destructive_stepping.py
@@ -204,7 +204,11 @@ class DestructiveSteppingFinalizer(IterTreeReducer):
self.dsrpath = dsrpath
def end_process(self):
- if self.dsrpath: self.dsrpath.write_changes()
+ if self.dsrpath:
+ Robust.check_common_error(self.dsrpath.write_changes,
+ lambda exc: Log("Error %s finalizing file %s" %
+ (str(exc), dsrp.path)))
+