Skip to content

Commit

Permalink
Merge pull request #13 from ucb-rit/fix_latin1_input
Browse files Browse the repository at this point in the history
fix bug when Latin1 character is part of `squeue` output
  • Loading branch information
wfeinstein authored Jan 10, 2024
2 parents 87a4dc3 + 38fe519 commit 0b3e5ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sq.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async def inner():
proc = await asyncio.create_subprocess_shell(
shlex.join(cmd), stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE)
stdout, stderr = await proc.communicate()
return stdout.decode('utf-8')
return stdout.decode('utf-8', 'backslashreplace')
return asyncio.run(inner())

def freeze(dest_dir, name, data):
Expand Down

0 comments on commit 0b3e5ef

Please sign in to comment.