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

Unified Diff: tools/json_schema_compiler/json_schema.py

Issue 1848103005: [Extensions] Remove the "use_movable_types" entry from idl/json files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « extensions/common/api/webcam_private.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/json_schema.py
diff --git a/tools/json_schema_compiler/json_schema.py b/tools/json_schema_compiler/json_schema.py
index bb4e9c4bc5d6f0c9e556ef40cb06cefa23232ad8..e00c11d7b352364ce0b12708e429c089342d1035 100644
--- a/tools/json_schema_compiler/json_schema.py
+++ b/tools/json_schema_compiler/json_schema.py
@@ -37,9 +37,13 @@ def DeleteNodes(item, delete_key=None, matcher=None):
def Load(filename):
- with open(filename, 'r') as handle:
- schemas = json_parse.Parse(handle.read())
- return schemas
+ try:
+ with open(filename, 'r') as handle:
+ schemas = json_parse.Parse(handle.read())
+ return schemas
+ except:
+ print('FAILED: Exception encountered while loading "%s"' % filename)
Devlin 2016/04/01 23:34:29 drive-by: compile failures where I forgot to remov
lazyboy 2016/04/02 00:04:34 Acknowledged.
+ raise
# A dictionary mapping |filename| to the object resulting from loading the JSON
« no previous file with comments | « extensions/common/api/webcam_private.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698