summaryrefslogtreecommitdiff
path: root/buildstream/utils.py
diff options
context:
space:
mode:
authorJames Ennis <james.ennis@codethink.com>2018-02-14 17:42:18 +0000
committerJames Ennis <james.ennis@codethink.com>2018-03-14 17:31:06 +0000
commit432ddffdcb917e2b5a70b2cce0459be1b5881ad1 (patch)
treed62670fb6adecc495ac4b218130eb1e2e1b53d6f /buildstream/utils.py
parent9b4f54e1f8f1d064faaa51a5f480cb890892fb54 (diff)
downloadbuildstream-432ddffdcb917e2b5a70b2cce0459be1b5881ad1.tar.gz
pylint - dealt with unnecessary-pass warning
Diffstat (limited to 'buildstream/utils.py')
-rw-r--r--buildstream/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/utils.py b/buildstream/utils.py
index bd68522ad..a0c5eeba7 100644
--- a/buildstream/utils.py
+++ b/buildstream/utils.py
@@ -255,7 +255,7 @@ def safe_copy(src, dest, *, result=None):
# over extended file attributes.
if result:
result.failed_attributes.append(dest)
- pass
+
except shutil.Error as e:
raise UtilError("Failed to copy '{} -> {}': {}"
.format(src, dest, e)) from e