summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-19 15:38:09 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-19 15:38:09 +0900
commit0830323d0b9927b6fcf1ad7f313bea06cd82283c (patch)
treed7bd5d766f86d820c982e8130aab807f78e13ab0
parent0a718d863ecc0d51f1a1479689f14fbecd178fca (diff)
downloadbuildstream-0830323d0b9927b6fcf1ad7f313bea06cd82283c.tar.gz
buildstream/utils.py: Fixing unused variables
-rw-r--r--buildstream/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/utils.py b/buildstream/utils.py
index 5b246ced4..2752fef25 100644
--- a/buildstream/utils.py
+++ b/buildstream/utils.py
@@ -527,7 +527,7 @@ def save_file_atomic(filename, mode='w', *, buffering=-1, encoding=None,
# This operation is atomic, at least on platforms we care about:
# https://bugs.python.org/issue8828
os.replace(tempname, filename)
- except Exception as e:
+ except Exception:
cleanup_tempfile()
raise
@@ -685,7 +685,7 @@ def _process_list(srcdir, destdir, filelist, actionfunc, result,
if ignore_missing:
continue
else:
- raise UtilError("Source file is missing: {}".format(srcpath))
+ raise UtilError("Source file is missing: {}".format(srcpath)) from e
if stat.S_ISDIR(mode):
# Ensure directory exists in destination