Skip to content

Replace generic Exception with a Jinja2 one in kci_raise #1797

Closed

Description

@gctucker

The kci_raise helper adds a command to raise an exception in the templates, for example when the variables aren't valid or some issue is detected when rendering the template. It's better to validate the parameters before generating the output, but on the other hand it's better to raise a clear error when there's a problem then render a job definition that can't run and fails later in subtle ways.

We could pick one of the existing Jinja2 exceptions instead, see the documentation:

https://tedboy.github.io/jinja2/generated/jinja2.exceptions.html

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions