Skip to content

Commit

Permalink
[#486] Update PrerequisiteFailed in ConfigurationRunFailed
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmursa-dev committed Dec 19, 2024
1 parent 02426aa commit 5d2b272
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/objects/setup_configuration/steps/token_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5d2b272

Please sign in to comment.