From 5e1d7a381099f8bc266f5c903590db8dc2ba690f Mon Sep 17 00:00:00 2001 From: Susanna Kiwala Date: Tue, 22 Nov 2016 08:50:10 -0600 Subject: [PATCH] Check run return code from local IEDB install before proceeding --- pvacseq/lib/call_iedb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pvacseq/lib/call_iedb.py b/pvacseq/lib/call_iedb.py index 7c469d0..6befe29 100644 --- a/pvacseq/lib/call_iedb.py +++ b/pvacseq/lib/call_iedb.py @@ -49,6 +49,8 @@ def main(args_input = sys.argv[1:]): if args.iedb_executable_path is not None: response = run(prediction_class_object.iedb_executable_params(args), stdout=PIPE) + if response.returncode == 2: + sys.exit("Call to local IEDB install failed:\n%s\nAborting." % ' '.join(prediction_class_object.iedb_executable_params(args))) response_text = response.stdout output_mode = 'wb' else: