Index: chrome/common/extensions/docs/server2/api_models.py |
diff --git a/chrome/common/extensions/docs/server2/api_models.py b/chrome/common/extensions/docs/server2/api_models.py |
index e05f59d91acc1c6f54ab5508f0e79f72b5050409..ae5191368c2938cf35282f1ad392656553811d31 100644 |
--- a/chrome/common/extensions/docs/server2/api_models.py |
+++ b/chrome/common/extensions/docs/server2/api_models.py |
@@ -19,9 +19,9 @@ def _CreateAPIModel(path, data): |
schema = ProcessSchema(path, data) |
if os.path.splitext(path)[1] == '.json': |
schema = schema[0] |
+ if not schema: return None |
not at google - send to devlin
2013/11/07 23:52:18
When does this happen? If the schema doesn't parse
hukun
2013/11/08 06:23:39
One example is "musicManagerPrivate".
1) Process
|
return Namespace(schema, schema['namespace']) |
- |
not at google - send to devlin
2013/11/07 23:52:18
Ppython style is still is actually to have 2 blank
hukun
2013/11/08 06:23:39
Done
|
class APIModels(object): |
'''Tracks APIs and their Models. |
''' |