Skip to content

Commit

Permalink
Update action_parser.py
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Grittner <[email protected]>
  • Loading branch information
cvs0 and danielgrittner authored Feb 15, 2025
1 parent 36c7ccf commit dbdf763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admyral/compiler/action_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def parse_action(module_str: str, action_name: str) -> PythonAction:
if isinstance(action_decorator, ast.Call):
# Ensure the decorator has arguments if expected
if not action_decorator.keywords:
raise ValueError("The @action decorator must include arguments.")
raise ValueError("The arguments display_name and display_namespace must be defined for the @action decorator.")

for arg in action_decorator.keywords:
if not isinstance(arg.value, (ast.Constant, ast.List)):
Expand Down

0 comments on commit dbdf763

Please sign in to comment.