2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-24 07:28:25 +00:00

decode get_cmd_output

This commit is contained in:
Achilles Rasquinha 2018-01-29 17:54:03 +05:30
parent 2b554e55d7
commit 762b02c818

View File

@ -95,7 +95,9 @@ def get_frappe_commands(bench_path='.'):
if not os.path.exists(sites_path):
return []
try:
return json.loads(get_cmd_output("{python} -m frappe.utils.bench_helper get-frappe-commands".format(python=python), cwd=sites_path))
output = get_cmd_output("{python} -m frappe.utils.bench_helper get-frappe-commands".format(python=python), cwd=sites_path)
output = output.decode('utf-8')
return json.loads(output)
except subprocess.CalledProcessError:
return []