mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
cannot use capture_output in subprocess.run
Only available since Python 3.7.
This commit is contained in:
@@ -70,7 +70,9 @@ def run_api_script(endpoint, project_dir, extra_env=None, phpcgi_bin=None,
|
||||
else:
|
||||
cmd = [str(phpcgi_bin)]
|
||||
|
||||
proc = subprocess.run(cmd, cwd=str(project_dir), env=env, capture_output=True,
|
||||
proc = subprocess.run(cmd, cwd=str(project_dir), env=env,
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
check=False)
|
||||
|
||||
if proc.returncode != 0 or proc.stderr:
|
||||
|
||||
Reference in New Issue
Block a user