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

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: 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 | no next file » | 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..4d2bc6fb254355029624ac26f479a430a094c0ad 100755
--- a/tools/isolate/isolate.py
+++ b/tools/isolate/isolate.py
@@ -298,7 +298,7 @@ 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:
+ except (IOError, ValueError):
MAD 2012/05/18 17:46:03 Shouldn't you at lease log these?
M-A Ruel 2012/05/18 17:51:01 done
pass
return out
« 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