You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by no...@apache.org on 2020/12/29 12:58:22 UTC
[buildstream] 04/06: cascache: refactor,
rm some unused exception vars
This is an automated email from the ASF dual-hosted git repository.
not-in-ldap pushed a commit to branch aevri/win32_temptext
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit a86657c277e574bffa3f7b03aa7028cf4c68eaf3
Author: Angelos Evripiotis <je...@bloomberg.net>
AuthorDate: Tue Jun 11 10:10:16 2019 +0100
cascache: refactor, rm some unused exception vars
---
src/buildstream/_cas/cascache.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/buildstream/_cas/cascache.py b/src/buildstream/_cas/cascache.py
index ad8013d..005fd98 100644
--- a/src/buildstream/_cas/cascache.py
+++ b/src/buildstream/_cas/cascache.py
@@ -260,7 +260,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():
@@ -414,7 +414,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