Permalink
Browse files

Handle deadline exceeded exceptions too.

  • Loading branch information...
1 parent 397afff commit 364b005c4de5c391af0eaca77d43d3936bebf3c1 @mihaip committed Jan 22, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 app/birdfeeder/handlers/update.py
@@ -7,6 +7,7 @@
from google.appengine.api import taskqueue
from google.appengine.api import urlfetch
from google.appengine.ext import db
+from google.appengine.runtime import DeadlineExceededError
from base.constants import CONSTANTS
import base.handlers
@@ -57,6 +58,10 @@ def post(self):
logging.exception('JSON error')
self._write_error(500)
return
+ except DeadlineExceededError, err:
+ logging.exception('Deadline exceeded')
+ self._write_error(500)
+ return
if had_updates:
# TODO(mihaip): share feed URL generation with main.py

0 comments on commit 364b005

Please sign in to comment.