From: Christian Herdtweck Date: Wed, 22 Jun 2016 15:14:15 +0000 (+0200) Subject: fix error found by pylint X-Git-Tag: v2.2~18 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=f624ff3ddec71400ec25c2b80ce39d6d640777c1;p=python-delta-tar fix error found by pylint --- 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