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

Unified Diff: dashboard/dashboard/mr.py

Issue 2571053002: Checks for test existence first. (Closed)
Patch Set: Created 4 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/mr.py
diff --git a/dashboard/dashboard/mr.py b/dashboard/dashboard/mr.py
index 0a30e69e6ce8da9dcf5eb7455be91daa251e7e0a..e150dba2930474921ab4ea8f96095733f76ab21a 100644
--- a/dashboard/dashboard/mr.py
+++ b/dashboard/dashboard/mr.py
@@ -90,7 +90,8 @@ def StoreUnitsInAnomalyEntity(entity):
if entity.test:
test_key = utils.TestMetadataKey(entity.test)
test = test_key.get()
- entity.units = test.units
+ if test:
+ entity.units = test.units
yield op.db.Put(entity)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698