Browse Source

fix(commnds): Raise CalledProcessError if process returns non-zero exit code

version-14
Aditya Hase 5 years ago
parent
commit
7d65a557d1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/commands/__init__.py

+ 1
- 1
frappe/commands/__init__.py View File

@@ -62,7 +62,7 @@ def popen(command, *args, **kwargs):

return_ = proc.wait()

if raise_err:
if return_ and raise_err:
raise subprocess.CalledProcessError(return_, command)

return return_


Loading…
Cancel
Save