Skip to content

Commit

Permalink
catch if config is None in GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurDeclercq committed Oct 13, 2023
1 parent b47402a commit edf8afc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ms2rescore/config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ def parse_configurations(configurations: List[Union[dict, str, Path, Namespace]]

# Add configurations
for config in configurations:
if not config:
continue
if isinstance(config, dict):
cascade_conf.add_dict(config)
elif isinstance(config, str) or isinstance(config, Path):
Expand Down

0 comments on commit edf8afc

Please sign in to comment.