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

Unified Diff: appengine/findit/waterfall/swarming_util.py

Issue 2312413002: [Findit] Record error if swarming task completes with exit_code as 2. (Closed)
Patch Set: Add None check to avoid keyvalue error (related change) Created 4 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
Index: appengine/findit/waterfall/swarming_util.py
diff --git a/appengine/findit/waterfall/swarming_util.py b/appengine/findit/waterfall/swarming_util.py
index 23f4d480a327d161cca64c6610838e2db48985e1..c0fe5cb1475ac0f0c38e680fa8a0751f1550803f 100644
--- a/appengine/findit/waterfall/swarming_util.py
+++ b/appengine/findit/waterfall/swarming_util.py
@@ -213,6 +213,9 @@ def _FetchOutputJsonInfoFromIsolatedServer(isolated_data, http_client):
1. hash code for the output.json file,
2. the redirect url.
"""
+ if not isolated_data:
+ return None
+
post_data = {
'digest': isolated_data['digest'],
'namespace': {

Powered by Google App Engine
This is Rietveld 408576698