Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions executor/executor/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,10 +378,11 @@ def earthmover_run(self):
if err.stderr and "codec can't decode" in err.stderr and self.input_sources["INPUT_FILE"]["encoding"] != "ISO-8859-1":
self.logger.error(f"Failed to read file with {self.input_sources['INPUT_FILE']['encoding']} encoding. Retrying with Latin1...")
try:
# attempt no. 2
subprocess.run(
# attempt no. 2 - need a new em object to overwrite the decoding error
em = subprocess.run(
["earthmover", "-c", self.wrapper_earthmover, "run", "--results-file", artifact.EM_RESULTS.path, "--set", "sources.input.encoding", "iso-8859-1"],
).check_returncode()
)
em.check_returncode()

fatal = False # if we made it this far, we can abort the shutdown
except subprocess.CalledProcessError:
Expand Down