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

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

Issue 10704252: Extensions Docs Server: Internal file system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed up Created 8 years, 5 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/template_data_source.py
diff --git a/chrome/common/extensions/docs/server2/template_data_source.py b/chrome/common/extensions/docs/server2/template_data_source.py
index 984f82af2992a47691cc61da10ecaf630cb6dc4b..2bb4931344274b02241d03e910071c952423b85a 100644
--- a/chrome/common/extensions/docs/server2/template_data_source.py
+++ b/chrome/common/extensions/docs/server2/template_data_source.py
@@ -67,7 +67,7 @@ class TemplateDataSource(object):
real_path = FormatKey(key)
for base_path in self._base_paths:
try:
- return self._cache.getFromFile(base_path + '/' + real_path)
- except:
+ return self._cache.GetFromFile(base_path + '/' + real_path)
+ except Exception:
pass
return None

Powered by Google App Engine
This is Rietveld 408576698