def _EncodeOpError(err):
  if isinstance(err, errors.GenericError):
    to_encode = err
  else:
    to_encode = errors.OpExecError(str(err))

  return errors.EncodeException(to_encode)
Get all names of django-apps in the project in the given directory/module
dataset/ETHPy150Open ganeti/ganeti/lib/jqueue/__init__.py/_EncodeOpError--crossover with--dataset/ETHPy150Open jqb/django-settings/example/settings/__init__.py/apps_from