Skip to content
Snippets Groups Projects
Commit 801b2d95 authored by chrg's avatar chrg
Browse files

Fix small problem

parent f33785f0
Branches
No related tags found
No related merge requests found
......@@ -191,10 +191,10 @@ def mktransformer(program, args, batch):
fin.write(str(tmp_file).encode("utf-8") + b"\n") # type: ignore
fin.flush()
log.debug("Waiting for respond.")
reps = (fout.readline().decode(),) # type:ignore
reps = fout.readline().decode() # type:ignore
log.debug("Process respond %s:", reps)
except subprocess.CalledProcessError:
file = Path(file.name).with_suffix("input").absolute()
file = Path(file.name).with_suffix(".input").absolute()
log.error("Writing argument to %s", file)
with open(file, "wb") as f:
f.write(content)
......@@ -215,7 +215,7 @@ def mktransformer(program, args, batch):
try:
utils.run([program] + pargs)
except subprocess.CalledProcessError:
file = Path(file.name).with_suffix("input").absolute()
file = Path(file.name).with_suffix(".input").absolute()
log.error("Writing argument to %s", file)
with open(file, "wb") as f:
f.write(content)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment