Skip to content

Commit e2fa1c0

Browse files
committed
Fix reload swagger error if no arg change previously
1 parent 22ff35c commit e2fa1c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/aaz_dev/command/controller/workspace_cfg_editor.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,8 +649,9 @@ def inherit_modification(self, ref_cfg: CfgReader):
649649

650650
# inherit arguments modification
651651
ref_args = []
652-
for group in ref_command.arg_groups:
653-
ref_args.extend(group.args)
652+
if ref_command.arg_groups:
653+
for group in ref_command.arg_groups:
654+
ref_args.extend(group.args)
654655
command.generate_args(ref_args=ref_args)
655656

656657
# inherit outputs

0 commit comments

Comments
 (0)