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

Unified Diff: appengine/findit/crash/crash_pipeline.py

Issue 2523343002: [Predator] Refactor ToPublishResult and fix keyerror 'found' (Closed)
Patch Set: . Created 4 years, 1 month 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
Index: appengine/findit/crash/crash_pipeline.py
diff --git a/appengine/findit/crash/crash_pipeline.py b/appengine/findit/crash/crash_pipeline.py
index ae34261631005d0cc45a5874aea7f59ca55a735e..57eb151ff27a9ed3241ce50e9a6f2e0742bae4dd 100644
--- a/appengine/findit/crash/crash_pipeline.py
+++ b/appengine/findit/crash/crash_pipeline.py
@@ -179,7 +179,7 @@ class PublishResultPipeline(CrashBasePipeline):
(except for ``self``, naturally).
"""
analysis = self._findit.GetAnalysis(self._crash_identifiers)
- if analysis.failed:
+ if analysis.failed or not analysis.result:
logging.info('Can\'t publish result to %s because analysis failed:\n%s',
self.client_id, repr(self._crash_identifiers))
return

Powered by Google App Engine
This is Rietveld 408576698