Skip to content

Commit

Permalink
Fix a bug where if omni importer returned an error code, the error re…
Browse files Browse the repository at this point in the history
…porting itself would cause an error
  • Loading branch information
TheMadBug committed Sep 4, 2024
1 parent d83a00b commit f704b0a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def run(self, upload_classifications_unmapped_id: int, import_records: bool = Tr
stdout, _ = process.communicate()
_ = stdout.decode()
if error_code := process.returncode:
raise ValueError(f"cwd {self.omni_importer_dir : {' '.join(args)}} returned {error_code}")
raise ValueError(f"cwd {self.omni_importer_dir} : {' '.join(args)} returned {error_code}")

output_dir = working_sub_folder / "output"
classifications_file = output_dir / "classifications.json"
Expand Down

0 comments on commit f704b0a

Please sign in to comment.