From edf8afc336099046c8c3155f0e67ce81fd153fa4 Mon Sep 17 00:00:00 2001 From: ArthurDeclercq Date: Fri, 13 Oct 2023 11:51:36 +0200 Subject: [PATCH] catch if config is None in GUI --- ms2rescore/config_parser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ms2rescore/config_parser.py b/ms2rescore/config_parser.py index ced80c28..f4f8ac66 100644 --- a/ms2rescore/config_parser.py +++ b/ms2rescore/config_parser.py @@ -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):