From f624ff3ddec71400ec25c2b80ce39d6d640777c1 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Wed, 22 Jun 2016 17:14:15 +0200 Subject: [PATCH] fix error found by pylint --- deltatar/deltatar.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deltatar/deltatar.py b/deltatar/deltatar.py index cc23a58..aa59cd6 100644 --- a/deltatar/deltatar.py +++ b/deltatar/deltatar.py @@ -752,7 +752,7 @@ class DeltaTar(object): if not os.path.isabs(volume_path): volume_path = os.path.join(cwd, volume_path) - self.logger.debug("opening volume %s" % volume_path) + deltarobj.logger.debug("opening volume %s" % volume_path) tarobj.open_volume(volume_path) # wraps some args from context into the handler @@ -1297,7 +1297,7 @@ class DeltaTar(object): helper.restore(ipath, l_no, restore_callback) except Exception as e: self.logger.error("FAILED to restore: {} ({})" - .format(path.get('path', ''), e)) + .format(ipath.get('path', ''), e)) continue # if both files are equal, we have nothing to restore -- 1.7.1