Skip to content

Improve feedback on missing rule_set argument #59

@HugoPerrier

Description

@HugoPerrier

Is your feature request related to a problem? Please describe

When the RulesEngine.apply_rules method is ran, if the rule_set argument is missing,
A KeyError is raised with the message
KeyError: "Rule set 'None' not found in the rules, available rule sets are : ['my_rule_set']."

This does not make it clear that you should set the rule_set argument

Describe the solution you'd like

  • Making the rule_set a mandatory argument (state that you should type "default to use the default rule set?)

Describe alternatives you've considered

  • Make the error message Clearer

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions