summaryrefslogtreecommitdiff
path: root/taskflow/persistence/logbook.py
diff options
context:
space:
mode:
Diffstat (limited to 'taskflow/persistence/logbook.py')
-rw-r--r--taskflow/persistence/logbook.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/taskflow/persistence/logbook.py b/taskflow/persistence/logbook.py
index c7770fe..be254ea1 100644
--- a/taskflow/persistence/logbook.py
+++ b/taskflow/persistence/logbook.py
@@ -732,8 +732,8 @@ class RetryDetail(AtomDetail):
"""The last result that was produced."""
try:
return self.results[-1][0]
- except IndexError as e:
- raise exc.NotFound("Last results not found", e)
+ except IndexError:
+ exc.raise_with_cause(exc.NotFound, "Last results not found")
@property
def last_failures(self):
@@ -748,8 +748,8 @@ class RetryDetail(AtomDetail):
"""
try:
return self.results[-1][1]
- except IndexError as e:
- raise exc.NotFound("Last failures not found", e)
+ except IndexError:
+ exc.raise_with_cause(exc.NotFound, "Last failures not found")
def put(self, state, result):
"""Puts a result (acquired in the given state) into this detail.