mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
@@ -332,9 +332,11 @@ def exec_in_shell(cmd):
|
|||||||
|
|
||||||
stdout.seek(0)
|
stdout.seek(0)
|
||||||
out = stdout.read()
|
out = stdout.read()
|
||||||
|
if out: out = out.decode('utf-8')
|
||||||
|
|
||||||
stderr.seek(0)
|
stderr.seek(0)
|
||||||
err = stderr.read()
|
err = stderr.read()
|
||||||
|
if err: err = err.decode('utf-8')
|
||||||
|
|
||||||
if err and any((kw in err.lower() for kw in ["traceback", "error", "exception"])):
|
if err and any((kw in err.lower() for kw in ["traceback", "error", "exception"])):
|
||||||
print out
|
print out
|
||||||
|
|||||||
Reference in New Issue
Block a user