Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Unified Diff: dashboard/dashboard/pinpoint/models/attempt.py

Issue 3008183002: [pinpoint] Separate Execution exceptions from result_values. (Closed)
Patch Set: Fix exception loop Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dashboard/dashboard/pinpoint/models/job.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/pinpoint/models/attempt.py
diff --git a/dashboard/dashboard/pinpoint/models/attempt.py b/dashboard/dashboard/pinpoint/models/attempt.py
index 3fc153ff6067110e4bd436ba44e1a9e515c62fd7..0ecb02e90d80ccf358e1ceb8cc11756893ee32d9 100644
--- a/dashboard/dashboard/pinpoint/models/attempt.py
+++ b/dashboard/dashboard/pinpoint/models/attempt.py
@@ -42,6 +42,11 @@ class Attempt(object):
self._last_execution.completed and
len(self._quests) == len(self._executions))
+ @property
+ def exception(self):
+ assert self.completed
+ return self._last_execution.exception
+
@property
def result_values(self):
assert self.completed
« no previous file with comments | « no previous file | dashboard/dashboard/pinpoint/models/job.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698