diff options
author | Jürg Billeter <j@bitron.ch> | 2020-06-24 08:19:48 +0200 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2020-08-13 09:24:43 +0000 |
commit | 162dd86d466ed440c975f308a94da686740a3118 (patch) | |
tree | 5a885b66a9b36a4fabceace36f118848ffba09e8 /src/buildstream/_artifactcache.py | |
parent | dd315917a243c4353c53038e9517b439a88a8bf8 (diff) | |
download | buildstream-162dd86d466ed440c975f308a94da686740a3118.tar.gz |
Rename CacheError to AssetCacheError
Diffstat (limited to 'src/buildstream/_artifactcache.py')
-rw-r--r-- | src/buildstream/_artifactcache.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildstream/_artifactcache.py b/src/buildstream/_artifactcache.py index f310ea615..ad70fad94 100644 --- a/src/buildstream/_artifactcache.py +++ b/src/buildstream/_artifactcache.py @@ -23,7 +23,7 @@ import grpc from ._assetcache import AssetCache from ._cas.casremote import BlobNotFound -from ._exceptions import ArtifactError, CASError, CacheError, CASRemoteError, RemoteError +from ._exceptions import ArtifactError, AssetCacheError, CASError, CASRemoteError, RemoteError from ._protos.buildstream.v2 import buildstream_pb2, buildstream_pb2_grpc, artifact_pb2, artifact_pb2_grpc from ._remote import BaseRemote @@ -201,7 +201,7 @@ class ArtifactCache(AssetCache): def remove(self, ref): try: self._remove_ref(ref) - except CacheError as e: + except AssetCacheError as e: raise ArtifactError("{}".format(e)) from e # push(): |