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

Unified Diff: chrome/common/extensions/docs/server2/intro_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/intro_data_source.py
diff --git a/chrome/common/extensions/docs/server2/intro_data_source.py b/chrome/common/extensions/docs/server2/intro_data_source.py
index 34702fe582e7e57387cc02f3f121bef7670e902d..1f42eec755152b71a995d32bf7f572abda963f82 100644
--- a/chrome/common/extensions/docs/server2/intro_data_source.py
+++ b/chrome/common/extensions/docs/server2/intro_data_source.py
@@ -2,7 +2,6 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import logging
import re
from path_utils import FormatKey
from third_party.handlebar import Handlebar
@@ -38,7 +37,7 @@ class IntroDataSource(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
« no previous file with comments | « chrome/common/extensions/docs/server2/in_memory_memcache.py ('k') | chrome/common/extensions/docs/server2/local_fetcher.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698