Skip to content

Commit 589ddc6

Browse files
committed
Fix bug where config file from GUI could not be read correctly.
1 parent bb7d3bf commit 589ddc6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ms2rescore/config_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def parse_configurations(configurations: List[Union[dict, str, Path, Namespace]]
133133
else:
134134
raise ValueError(
135135
"Configuration should be a dictionary, argparse Namespace, or path to a "
136-
"configuration file."
136+
f"configuration file. Got: {config.__class__.__name__}"
137137
)
138138

139139
# Parse configurations

ms2rescore/gui/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ def function(config):
802802
"""Function to be executed in a separate process."""
803803
config = config.copy()
804804
if config["ms2rescore"]["config_file"]:
805-
config_list = [[config["ms2rescore"]["config_file"], config]]
805+
config_list = [config["ms2rescore"]["config_file"], config]
806806
else:
807807
config_list = [config]
808808
config = parse_configurations(config_list)

0 commit comments

Comments
 (0)