Skip to content

Commit 8a80da6

Browse files
committed
Fix a bug in loading .roosterizerc configs.
1 parent 7910b24 commit 8a80da6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

roosterize/interface/CommandLineInterface.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ def load_configs(self, prj_root: Optional[Path] = None, force_reload: bool = Fal
9999

100100
def set_configs_from_dict(self, d: dict, fields: List[str]):
101101
for f in fields:
102-
setattr(self, f, d[f])
102+
if f in d:
103+
setattr(self, f, d[f])
103104

104105
def download_global_model(self, force_yes: bool = False):
105106
"""

0 commit comments

Comments
 (0)