Skip to content

Commit

Permalink
encode str to bytes if not NoneType
Browse files Browse the repository at this point in the history
  • Loading branch information
jharshman committed Jan 16, 2024
1 parent 3aaa43e commit 19b4293
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assetman/compilers.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def run_proc(cmd, stdin=None):
popen_args = dict(stdout=subprocess.PIPE, stderr=subprocess.PIPE)
if stdin is not None:
popen_args['stdin'] = subprocess.PIPE
stdin = stdin.encode()
proc = subprocess.Popen(cmd, **popen_args)
out, err = proc.communicate(input=stdin)
if proc.returncode != 0:
Expand Down

0 comments on commit 19b4293

Please sign in to comment.