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

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

Issue 13896007: Devserver: run the cron over the examples. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: try again to avoid .svn Created 7 years, 8 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_list_data_source.py
diff --git a/chrome/common/extensions/docs/server2/api_list_data_source.py b/chrome/common/extensions/docs/server2/api_list_data_source.py
index 7c1c65a09f316723c9a74a5c79cde89cd136d5dd..939b4b6fea307561bed04916d6316fab5462de48 100644
--- a/chrome/common/extensions/docs/server2/api_list_data_source.py
+++ b/chrome/common/extensions/docs/server2/api_list_data_source.py
@@ -5,7 +5,6 @@
import logging
import os
-from file_system import FileNotFoundError
import third_party.json_schema_compiler.model as model
import docs_server_utils as utils
@@ -85,7 +84,4 @@ class APIListDataSource(object):
return [api_name['name'] for api_name in names]
def get(self, key):
- try:
- return self._compiled_fs.GetFromFileListing(self._api_path)[key]
- except FileNotFoundError as e:
- raise ValueError('%s: Error listing files for "%s".' % (e, key))
+ return self._compiled_fs.GetFromFileListing(self._api_path)[key]
« no previous file with comments | « chrome/common/extensions/docs/server2/api_data_source.py ('k') | chrome/common/extensions/docs/server2/caching_file_system.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698