diff --git a/sekoia_automation/scripts/openapi.py b/sekoia_automation/scripts/openapi.py index 7d47748..8e8bc01 100644 --- a/sekoia_automation/scripts/openapi.py +++ b/sekoia_automation/scripts/openapi.py @@ -121,7 +121,7 @@ def get_action_name( ) -> str: name: str = "" - if "summary" in action_method and action_method["summary"]: + if action_method.get("summary"): if use_tags and action_method.get("tags"): name = "-".join(action_method["tags"]) name += "_"