Skip to content

Commit 053852c

Browse files
authored
Merge pull request Azure#135 from calvinhzy/fix_reload_swagger_no_arg
Fix reload swagger error if no arg change previously
2 parents 22ff35c + e2fa1c0 commit 053852c

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)