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

Unified Diff: chrome/common/extensions/docs/server2/caching_file_system.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/caching_file_system.py
diff --git a/chrome/common/extensions/docs/server2/caching_file_system.py b/chrome/common/extensions/docs/server2/caching_file_system.py
index 578dfa8dc42ea5ed142b98388f4e03f9b6092033..ea02a440dcc6848474977a27a06a73fe6692e59a 100644
--- a/chrome/common/extensions/docs/server2/caching_file_system.py
+++ b/chrome/common/extensions/docs/server2/caching_file_system.py
@@ -40,7 +40,7 @@ class CachingFileSystem(FileSystem):
self._read_binary_object_store = create_object_store('read-binary')
def Stat(self, path, stats=None):
- """Stats the directory given, or if a file is given, stats the files parent
+ """Stats the directory given, or if a file is given, stats the file's parent
directory to get info about the file.
"""
# TODO(kalman): store the whole stat info, not just the version.
@@ -61,7 +61,7 @@ class CachingFileSystem(FileSystem):
else:
version = dir_stat.child_versions.get(path.split('/')[-1], None)
if version is None:
- raise FileNotFoundError(path)
+ raise FileNotFoundError('Version was None for %s' % path)
mapping = { path: version }
for child_path, child_version in dir_stat.child_versions.iteritems():
« no previous file with comments | « chrome/common/extensions/docs/server2/api_list_data_source.py ('k') | chrome/common/extensions/docs/server2/example_zipper.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698