Skip to content
Snippets Groups Projects
Commit 72e8daf1 authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Add another missing await

parent 5df5e468
No related branches found
No related tags found
1 merge request!435Use asyncio subprocess interface in webservice code
...@@ -211,7 +211,7 @@ async def run_proc_async(cmd: List[str]) -> (int, bytes): ...@@ -211,7 +211,7 @@ async def run_proc_async(cmd: List[str]) -> (int, bytes):
Returns the numeric exit code and stdout (bytes) Returns the numeric exit code and stdout (bytes)
""" """
proc = await asyncio.create_subprocess_exec(*cmd, stdout=asyncio.subprocess.PIPE) proc = await asyncio.create_subprocess_exec(*cmd, stdout=asyncio.subprocess.PIPE)
stdout, _ = proc.communicate() stdout, _ = await proc.communicate()
return proc.returncode, stdout return proc.returncode, stdout
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment