aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility
diff options
context:
space:
mode:
authorpjotrp2016-02-25 11:22:02 +0000
committerPjotr Prins2016-04-20 09:38:14 +0000
commit2e039da988b585fde5a09e94d7fd7b56262752f2 (patch)
tree5c369213fe19683072ef1bc4a3e9e0965ba24603 /wqflask/utility
parenta4686a6e2fc96e3fc59d99823a25662fec793d2b (diff)
downloadgenenetwork2-2e039da988b585fde5a09e94d7fd7b56262752f2.tar.gz
external program should fail on return value not zero
Diffstat (limited to 'wqflask/utility')
-rw-r--r--wqflask/utility/external.py2
1 files changed, 1 insertions, 1 deletions
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)