How to disable BadValueError (required field) value in Google App Engine during scanning all records? -
I want to scan all records so that it can detect that there are no errors inside the data.
How can I disable BadValueError to scan a break due to a lack of required fields?
Consider that I can change to Can I use some functions to read directly The solution I found for this problem was to use a flexible query, by this one query Throwing an exception ignores, you can try it: StringProperty not necessary and such properties can be tenths in the actual code - hence such solutions are not useful?
class A (db.model): x = db.StringProperty (required = true) for example in A.all (): # if some example (example): example .delete ()
datastore.Entity to avoid such problems that do not require verification?
def resilient_query (query): query_iter = iter (query) while true: next_result = query_iter.next () # some object next_resquestion exceptions, etc. E: next_result.delete () query = resilient_query (Excerpt))
Comments
Post a Comment