def allocate_ids(model, size):
  models_or_keys, multiple = datastore.NormalizeAndTypeCheck(
      model, (Model, Key, basestring))
  keys = []
  for model_or_key in models_or_keys:
    if isinstance(model_or_key, Model):
      key = model_or_key = model_or_key.key()
    elif isinstance(model_or_key, basestring):
      key = model_or_key = Key(model_or_key)
    else:
      key = model_or_key
    keys.append(key)
  return datastore.AllocateIds(keys, size)
Handle an unknown error of any kind.
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/ext/db/__init__.py/allocate_ids--crossover with--dataset/ETHPy150Open joonty/vdebug/plugin/python/start_vdebug.py/DebuggerInterface.handle_general_exception