thirdparty/google_appengine/google/appengine/api/datastore.py
changeset 297 35211afcd563
parent 149 f2e327a7c5de
child 686 df109be0567c
equal deleted inserted replaced
296:b02dd2a5f329 297:35211afcd563
  1431                                          tx.handle, resp)
  1431                                          tx.handle, resp)
  1432         except apiproxy_errors.ApplicationError, err:
  1432         except apiproxy_errors.ApplicationError, err:
  1433           if (err.application_error ==
  1433           if (err.application_error ==
  1434               datastore_pb.Error.CONCURRENT_TRANSACTION):
  1434               datastore_pb.Error.CONCURRENT_TRANSACTION):
  1435             logging.warning('Transaction collision for entity group with '
  1435             logging.warning('Transaction collision for entity group with '
  1436                             'key %r', tx.entity_group)
  1436                             'key %r. Retrying...', tx.entity_group)
  1437             tx.handle = None
  1437             tx.handle = None
  1438             tx.entity_group = None
  1438             tx.entity_group = None
  1439             continue
  1439             continue
  1440           else:
  1440           else:
  1441             raise _ToDatastoreError(err)
  1441             raise _ToDatastoreError(err)