From 1c0dac3bb0862f421c7251f69066dd9600433eba Mon Sep 17 00:00:00 2001 From: Alan Collins Date: Mon, 11 Dec 2023 11:18:28 -0500 Subject: [PATCH] bugfix read files only checked when reads provided --- el_gato/el_gato.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/el_gato/el_gato.py b/el_gato/el_gato.py index 4174efa..a08e0cd 100644 --- a/el_gato/el_gato.py +++ b/el_gato/el_gato.py @@ -558,7 +558,7 @@ def check_files(inputs: dict) -> None: if not inputs["verbose"]: print(f"Read file 2: '{inputs['read2']}' doesn't exist. Exiting") sys.exit(1) - if inputs["read1"] == inputs["read2"]: + if inputs["read1"] and inputs["read2"] and inputs["read1"] == inputs["read2"]: logging.critical(f"Read file 1: ('{inputs['read1']}') and Read file 2: ('{inputs['read2']}') are the same. Exiting") if not inputs["verbose"]: print(f"Read file 1: ('{inputs['read1']}') and Read file 2: ('{inputs['read2']}') are the same. Exiting")