diff --git a/slurmpy/slurmpy.py b/slurmpy/slurmpy.py index 966e9b0..0612d9a 100755 --- a/slurmpy/slurmpy.py +++ b/slurmpy/slurmpy.py @@ -169,7 +169,7 @@ def run(self, command, name_addition=None, cmd_kwargs=None, args.append(mid) args.append(sh.name) res = subprocess.check_output(args).strip() - print(res, file=sys.stderr) + print(res.decode(), file=sys.stderr) self.name = n if not res.startswith(b"Submitted batch"): return None