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

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

Catch ValueError in formatscaper subprocesses

* these can happen if the error log file gets closed while the
  subprocesses are still writing to it, which can happen if the user
  aborts the execution with ^C
parent 666be79c
Branches
No related tags found
1 merge request!14Add TUI tool for managing format identification results
...@@ -233,7 +233,7 @@ def process_record_file(record_file: RecordFile) -> None: ...@@ -233,7 +233,7 @@ def process_record_file(record_file: RecordFile) -> None:
if not args.no_progressbar: if not args.no_progressbar:
progress_bar.update(completed_tasks, force=True) progress_bar.update(completed_tasks, force=True)
except subprocess.CalledProcessError as e: except (subprocess.CalledProcessError, ValueError) as e:
print("WARN: error during sf execution:", str(e), file=sys.stderr) print("WARN: error during sf execution:", str(e), file=sys.stderr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment