From 1a7110bc66e283e102d8f3bc008f1044529a3c61 Mon Sep 17 00:00:00 2001 From: Fynn Freyer Date: Wed, 8 Nov 2023 12:21:52 +0100 Subject: [PATCH] fix: amend syntax error in except statement Cf. https://docs.python.org/3/reference/compound_stmts.html#except Closes #89 --- hivtrace/hivtrace.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hivtrace/hivtrace.py b/hivtrace/hivtrace.py index aef8ce7..1e3c21d 100755 --- a/hivtrace/hivtrace.py +++ b/hivtrace/hivtrace.py @@ -341,9 +341,8 @@ def hivtrace(id, lanl_tn93output_zip = os.path.join(resource_dir, 'LANL.TN93OUTPUT.csv.gz') gunzip_file(lanl_tn93output_zip, LANL_TN93OUTPUT_CSV) - except e: # pragma: no cover - print("Oops, missing a resource file") - raise + except Exception as e: + raise Exception("Oops, missing a resource file") from e # Python Parameters SCORE_MATRIX = 'HIV_BETWEEN_F'