Skip to content

Commit

Permalink
Properly decode binary data
Browse files Browse the repository at this point in the history
  • Loading branch information
niknetniko committed Dec 1, 2023
1 parent 4848976 commit 1a9b382
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tested/judge/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def run_command(
)
except subprocess.TimeoutExpired as e:
return BaseExecutionResult(
stdout=str(e.stdout or ""),
stderr=str(e.stderr or ""),
stdout=e.stdout.decode("utf-8", "backslashreplace") if e.stdout else "",
stderr=e.stderr.decode("utf-8", "backslashreplace") if e.stderr else "",
exit=0,
timeout=True,
memory=False,
Expand Down

0 comments on commit 1a9b382

Please sign in to comment.