From 2e039da988b585fde5a09e94d7fd7b56262752f2 Mon Sep 17 00:00:00 2001 From: pjotrp Date: Thu, 25 Feb 2016 11:22:02 +0000 Subject: external program should fail on return value not zero --- wqflask/utility/external.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wqflask') diff --git a/wqflask/utility/external.py b/wqflask/utility/external.py index bd8cf584..50afea08 100644 --- a/wqflask/utility/external.py +++ b/wqflask/utility/external.py @@ -5,5 +5,5 @@ import sys import subprocess def shell(command): - if not subprocess.call(command, shell=True): + if subprocess.call(command, shell=True) != 0: raise Exception("ERROR: failed on "+command) -- cgit v1.2.3