diff --git a/src/objects/setup_configuration/steps/token_auth.py b/src/objects/setup_configuration/steps/token_auth.py index 8e123718..1da9161c 100644 --- a/src/objects/setup_configuration/steps/token_auth.py +++ b/src/objects/setup_configuration/steps/token_auth.py @@ -54,7 +54,9 @@ def _configure_permissions(self, token: TokenAuth, permissions: list) -> None: "fields": permission.fields, } except ObjectDoesNotExist as exception: - raise PrerequisiteFailed(step=self, validation_error=exception) + raise ConfigurationRunFailed( + ("Object type with %s does not exist" % permission.object_type) + ) from exception permission_instance = Permission(**permission_kwargs) self._full_clean(permission_instance)