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

Unified Diff: tools/isolate/isolate.py

Issue 10386211: An empty .results file would throw ValueError, eat it. (Closed) Base URL: bombe.local:src/chrome/src@11_fix_handling_gypv8sh
Patch Set: Update integration test Created 8 years, 7 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 | tools/isolate/isolate_smoke_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/isolate/isolate.py
diff --git a/tools/isolate/isolate.py b/tools/isolate/isolate.py
index 47ca000115263ea4096e951823aff51b312ebb46..252ca0ccb13657f38f71a7625611d94588a651ae 100755
--- a/tools/isolate/isolate.py
+++ b/tools/isolate/isolate.py
@@ -298,8 +298,8 @@ class Flattenable(object):
with open(filename, 'r') as f:
out = cls.load(json.load(f))
logging.debug('Loaded %s(%s)' % (cls.__name__, filename))
- except IOError:
- pass
+ except (IOError, ValueError):
+ logging.warn('Failed to load %s' % filename)
return out
« no previous file with comments | « no previous file | tools/isolate/isolate_smoke_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698