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

Unified Diff: handler.py

Issue 11876008: Fix for handling pages without a timestamp. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/chromium-build
Patch Set: Created 7 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: handler.py
diff --git a/handler.py b/handler.py
index f279878e9d8126ebe7c283ad2962ff38b793034e..3da8548dcdf26597f18c54114634241d3cfa2eff 100644
--- a/handler.py
+++ b/handler.py
@@ -82,6 +82,8 @@ class PageAction(base_page.BasePage):
def recent_page(page_data):
ts = page_data.get('fetch_timestamp')
+ if not ts:
+ return False
now = app.datetime.datetime.now()
if isinstance(ts, app.datetime.datetime):
delta = now - ts
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698