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

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

Issue 92143003: Docserver: Reorganise the site templates into a single site.html file which (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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/strings_data_source.py
diff --git a/chrome/common/extensions/docs/server2/strings_data_source.py b/chrome/common/extensions/docs/server2/strings_data_source.py
index 11d68991dbea23fff4129cbdad5b21591b607977..5dca1af224d3198f8f5b97951a87d82c150a912d 100644
--- a/chrome/common/extensions/docs/server2/strings_data_source.py
+++ b/chrome/common/extensions/docs/server2/strings_data_source.py
@@ -2,6 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import logging
+
from extensions_paths import JSON_TEMPLATES
from data_source import DataSource
@@ -21,4 +23,7 @@ class StringsDataSource(DataSource):
return self._GetStringsData()
def get(self, key):
- return self._GetStringsData().Get().get(key)
+ string = self._GetStringsData().Get().get(key)
+ if string is None:
+ logging.warning('String "%s" not found' % key)
+ return string

Powered by Google App Engine
This is Rietveld 408576698