Hi,

Yes, you can catch the timeout exception.  It works like other exception in
python you could do something like:

...
try:
  model = NewModel.put()
except:
  self.response.out.write('This feature is not available')
  return
...

-Marzia

On Tue, Jan 6, 2009 at 12:30 AM, livibetter <livibet...@gmail.com> wrote:

>
> I just got three timeouts about an hour ago within 10 minutes to my app
> (appid: brps), all generated same traceback.
>
> They happened at:
> 01-05 11:50AM 18.670
> 01-05 11:50AM 13.719
> 01-05 11:41AM 50.052
>
> It's not a big deal to me, just want to provide the info.
>
> But I do have a question, can we catch `Timeout` exception?
>
> ======
>
> One of the error log:
> 01-05 11:50AM 13.719 /get?
>
> blog=4589801858088630122&post=430278962333729325&callback=jsonp1231109286447&_=1231109287404
> 500 11474ms 8190ms-cpu 1kb
> See details
>
> 65.210.123.XXX - - [05/Jan/2009:11:50:25 -0800] "GET /get?
>
> blog=4589801858088630122&post=430278962333729325&callback=jsonp1231109286447&_=1231109287404
> HTTP/1.1" 500 1115 - -
>
> 01-05 11:50AM 25.180
> Traceback (most recent call last):
>  File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> __init__.py", line 498, in __call__
>    handler.get(*groups)
>  File "/base/data/home/apps/brps/1.330487559911947040/index.py", line
> 100, in get
>    p = post.get(blog_id, post_id)
>  File "/base/data/home/apps/brps/1.330487559911947040/brps/post.py",
> line 75, in get
>    p = Post.get_by_key_name(key_name)
>  File "/base/python_lib/versions/1/google/appengine/ext/db/
> __init__.py", line 837, in get_by_key_name
>    return get(*keys)
>  File "/base/python_lib/versions/1/google/appengine/ext/db/
> __init__.py", line 1032, in get
>    entities = datastore.Get(keys)
>  File "/base/python_lib/versions/1/google/appengine/api/
> datastore.py", line 217, in Get
>    raise _ToDatastoreError(err)
>  File "/base/python_lib/versions/1/google/appengine/api/
> datastore.py", line 1637, in _ToDatastoreError
>    raise errors[err.application_error](err.error_detail)
> Timeout
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to