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

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

Issue 108213010: Docserver: Add per-request profiling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add github crash thing 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
« no previous file with comments | « chrome/common/extensions/docs/server2/cron.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/server2/github_file_system.py
diff --git a/chrome/common/extensions/docs/server2/github_file_system.py b/chrome/common/extensions/docs/server2/github_file_system.py
index d67e580730d58f1bf7303dffacfc592786357297..ff5019df751bf1020deabb1c0451bcf074f51710 100644
--- a/chrome/common/extensions/docs/server2/github_file_system.py
+++ b/chrome/common/extensions/docs/server2/github_file_system.py
@@ -100,8 +100,12 @@ class GithubFileSystem(FileSystem):
self._GetZip(self.Stat(ZIP_KEY).version)
def _GetZip(self, version):
- blob = self._blobstore.Get(_MakeBlobstoreKey(version),
- blobstore.BLOBSTORE_GITHUB)
+ try:
+ blob = self._blobstore.Get(_MakeBlobstoreKey(version),
+ blobstore.BLOBSTORE_GITHUB)
+ except:
Yoyo Zhou 2013/12/13 05:15:21 except SpecificTypeOfError: would be better.
not at google - send to devlin 2013/12/18 02:26:11 Done.
+ self._zip_file = Future(value=None)
+ return
if blob is not None:
try:
self._zip_file = Future(value=ZipFile(StringIO(blob)))
« no previous file with comments | « chrome/common/extensions/docs/server2/cron.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698