mirror of
https://github.com/frappe/bench.git
synced 2025-01-26 00:08:23 +00:00
fix(error): Python 2 does not provide stderr on CalledProcessError (#762)
This commit is contained in:
parent
5ab2da3d39
commit
d1810e1dc1
@ -99,7 +99,7 @@ def get_frappe_commands(bench_path='.'):
|
|||||||
# output = output.decode('utf-8')
|
# output = output.decode('utf-8')
|
||||||
return json.loads(output)
|
return json.loads(output)
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
if e.stderr:
|
if hasattr(e, "stderr"):
|
||||||
print(e.stderr.decode('utf-8'))
|
print(e.stderr.decode('utf-8'))
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user