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 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 ()   

Can I use some functions to read directly datastore.Entity to avoid such problems that do not require verification?

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:

  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

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -