Skip to content

Commit

Permalink
Merge pull request #1371 from nipreps/fix/1352
Browse files Browse the repository at this point in the history
FIX: Decode bytes to produce a string
  • Loading branch information
oesteban authored Jan 13, 2025
2 parents 8e46878 + a0e9f38 commit 9d4cc9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mriqc/interfaces/webapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ def _run_interface(self, runtime):
| orjson.OPT_APPEND_NEWLINE
| orjson.OPT_SERIALIZE_NUMPY
),
)
Path('payload.json').write_bytes(payload_str)
).decode('utf-8')
Path('payload.json').write_text(payload_str)
self._results['payload_file'] = str(Path('payload.json').absolute())

try:
Expand Down

0 comments on commit 9d4cc9e

Please sign in to comment.