*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 666be79c authored by Moser, Maximilian's avatar Moser, Maximilian
Browse files

Fix loading of pickle results

parent f0b74436
Branches
No related tags found
1 merge request!14Add TUI tool for managing format identification results
...@@ -108,7 +108,8 @@ def load_results( ...@@ -108,7 +108,8 @@ def load_results(
raw_results = [] raw_results = []
if file_format == "pickle": if file_format == "pickle":
raw_results = pickle.load(file_name) with open(file_name, "rb") as results_file:
raw_results = pickle.load(results_file)
elif file_format == "yaml": elif file_format == "yaml":
with open(file_name, "r") as results_file: with open(file_name, "r") as results_file:
raw_results = yaml.safe_load(results_file) raw_results = yaml.safe_load(results_file)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment