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

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

Issue 453713002: Docserver: Generate a table of extension/app API owners (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/local_file_system.py
diff --git a/chrome/common/extensions/docs/server2/local_file_system.py b/chrome/common/extensions/docs/server2/local_file_system.py
index 7d085945ca69767b01868cbc91d7a357dbd73d35..8859b807e464556d08a804770895e1d34ade2a4a 100644
--- a/chrome/common/extensions/docs/server2/local_file_system.py
+++ b/chrome/common/extensions/docs/server2/local_file_system.py
@@ -88,7 +88,12 @@ class LocalFileSystem(FileSystem):
if path == '' or path.endswith('/'):
result[path] = _ListDir(full_path)
else:
- result[path] = _ReadFile(full_path)
+ try:
+ result[path] = _ReadFile(full_path)
+ except FileNotFoundError:
+ if skip_not_found:
+ continue
+ raise
not at google - send to devlin 2014/08/15 15:45:51 Actually this should return a Future which raises
return result
return Future(callback=resolve)

Powered by Google App Engine
This is Rietveld 408576698