summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos Evripiotis <jevripiotis@bloomberg.net>2019-06-11 10:10:16 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-06-27 12:34:43 +0000
commit4b941ff389707d1f6a5be1f422f2831ae9cc32c3 (patch)
tree552c4dfd91e07b534e7cd5bc96c79c18b4561629
parent0ba48b73946e21470293e03ca66e68c5964715cf (diff)
downloadbuildstream-4b941ff389707d1f6a5be1f422f2831ae9cc32c3.tar.gz
cascache: refactor, rm some unused exception vars
-rw-r--r--src/buildstream/_cas/cascache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildstream/_cas/cascache.py b/src/buildstream/_cas/cascache.py
index 434e71663..ba520851c 100644
--- a/src/buildstream/_cas/cascache.py
+++ b/src/buildstream/_cas/cascache.py
@@ -246,7 +246,7 @@ class CASCache():
raise CASCacheError("Failed to pull ref {}: {}".format(ref, e)) from e
else:
return False
- except BlobNotFound as e:
+ except BlobNotFound:
return False
# pull_tree():
@@ -400,7 +400,7 @@ class CASCache():
os.makedirs(os.path.dirname(objpath), exist_ok=True)
os.link(tmp.name, objpath)
- except FileExistsError as e:
+ except FileExistsError:
# We can ignore the failed link() if the object is already in the repo.
pass