diff options
author | pjotrp | 2016-02-25 11:22:02 +0000 |
---|---|---|
committer | Pjotr Prins | 2016-04-20 09:38:14 +0000 |
commit | 2e039da988b585fde5a09e94d7fd7b56262752f2 (patch) | |
tree | 5c369213fe19683072ef1bc4a3e9e0965ba24603 /wqflask | |
parent | a4686a6e2fc96e3fc59d99823a25662fec793d2b (diff) | |
download | genenetwork2-2e039da988b585fde5a09e94d7fd7b56262752f2.tar.gz |
external program should fail on return value not zero
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/utility/external.py | 2 |
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) |