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

Unified Diff: chrome/common/extensions/docs/server2/api_data_source.py

Issue 10854054: Extensions Docs Server: Fix handling of nodocs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
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
« no previous file with comments | « no previous file | chrome/common/extensions/docs/server2/converter.py » ('j') | chrome/common/extensions/docs/server2/converter.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698