Okay, i performed debugging yesterday and figured out that the total
number of Datastore errors were small compared to what i had reported
earlier. However, errors are still happening for 1% of the queries,
which is kinda acceptable for the kind of application i am building.
However, even for these errors, i want to get the exception. I have
tried the following(example):


try:
  db.put()
except BadKeyError:
 logging.error('BadKeyError')
except Timeout:
 logging.error('Timeout')
except:
 logging.error('Error other')

As compared to the example above, i have tried to catch all the
exceptions given here - 
http://code.google.com/appengine/docs/python/datastore/exceptions.html
. However i still end up with the 'Error other' exception message in
my logs. Can someone provide a good way to catch datastore exceptions
in python and and how to get the related error message

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

Reply via email to