Chromium Code Reviews| Index: chrome/common/extensions/docs/server2/api_data_source.py |
| diff --git a/chrome/common/extensions/docs/server2/api_data_source.py b/chrome/common/extensions/docs/server2/api_data_source.py |
| index 5e07ea25b0e763abe88890d40f2cd9db9bda4b96..d5ad5ddd960fe401a33fd04ba354525698c2f183 100644 |
| --- a/chrome/common/extensions/docs/server2/api_data_source.py |
| +++ b/chrome/common/extensions/docs/server2/api_data_source.py |
| @@ -7,6 +7,7 @@ import logging |
| import os |
| from handlebar_dict_generator import HandlebarDictGenerator |
| +from handlebar_dict_generator import NoDocError |
| import third_party.json_schema_compiler.json_comment_eater as json_comment_eater |
| import third_party.json_schema_compiler.model as model |
| import third_party.json_schema_compiler.idl_schema as idl_schema |
| @@ -90,10 +91,12 @@ class APIDataSource(object): |
| return self._GenerateHandlebarContext(key, |
| self._json_cache.GetFromFile(self._base_path + '/' + json_path), |
| path) |
| - except OSError: |
| + except NoDocError: |
| + raise |
| + except Exception: |
|
not at google - send to devlin
2012/08/09 05:11:36
why did you change these from OSError to Exception
cduvall
2012/08/09 17:54:05
Yeah, I agree that the FileSystems should all beha
|
| try: |
| return self._GenerateHandlebarContext(key, |
| self._idl_cache.GetFromFile(self._base_path + '/' + idl_path), |
| path) |
| - except OSError as e: |
| + except Exception as e: |
| raise |