diff --git a/webservice/webservice.py b/webservice/webservice.py
index 21c0bb815d3e24b8a57c1043543a7d580cfa524a..a44f54980fd576592d14d4faa129a672874f5f86 100644
--- a/webservice/webservice.py
+++ b/webservice/webservice.py
@@ -227,7 +227,7 @@ async def slurm_status(filter_user=True):
         cmd += ["-u", getpass.getuser()]
     retcode, stdout = await run_proc_async(cmd)
     if retcode == 0:
-        rlines = retcode.decode().split("\n")
+        rlines = stdout.decode().split("\n")
         statii = {}
         for r in rlines[1:]:
             try: