summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbst-marge-bot <marge-bot@buildstream.build>2020-04-21 12:12:00 +0000
committerbst-marge-bot <marge-bot@buildstream.build>2020-04-21 12:12:00 +0000
commit6c6d8f8c9c1dbe5a8990869daff469976bdbc0b2 (patch)
treeb4aea96dca3f2f43a250804a2f78aad0294a1b1f
parentf685c312aba0014e62118ae937ee710e65c11cfc (diff)
parent31c160076afbecc348a5a8b1512d9d7802b0f721 (diff)
downloadbuildstream-6c6d8f8c9c1dbe5a8990869daff469976bdbc0b2.tar.gz
Merge branch 'juerg/temporary-failure' into 'master'
_exceptions.py: Propagate `temporary` to the base class See merge request BuildStream/buildstream!1873
-rw-r--r--src/buildstream/_exceptions.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buildstream/_exceptions.py b/src/buildstream/_exceptions.py
index e9599d225..f92ab822b 100644
--- a/src/buildstream/_exceptions.py
+++ b/src/buildstream/_exceptions.py
@@ -125,7 +125,7 @@ class BstError(Exception):
#
class PluginError(BstError):
def __init__(self, message, reason=None, temporary=False):
- super().__init__(message, domain=ErrorDomain.PLUGIN, reason=reason, temporary=False)
+ super().__init__(message, domain=ErrorDomain.PLUGIN, reason=reason, temporary=temporary)
# LoadError
@@ -195,7 +195,7 @@ class SourceCacheError(BstError):
#
class ArtifactError(BstError):
def __init__(self, message, *, detail=None, reason=None, temporary=False):
- super().__init__(message, detail=detail, domain=ErrorDomain.ARTIFACT, reason=reason, temporary=True)
+ super().__init__(message, detail=detail, domain=ErrorDomain.ARTIFACT, reason=reason, temporary=temporary)
# RemoteError
@@ -213,7 +213,7 @@ class RemoteError(BstError):
#
class CASError(BstError):
def __init__(self, message, *, detail=None, reason=None, temporary=False):
- super().__init__(message, detail=detail, domain=ErrorDomain.CAS, reason=reason, temporary=True)
+ super().__init__(message, detail=detail, domain=ErrorDomain.CAS, reason=reason, temporary=temporary)
# CASRemoteError