Skip to content

Commit

Permalink
bugfix read files only checked when reads provided
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan-Collins committed Dec 11, 2023
1 parent 905b72b commit 1c0dac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion el_gato/el_gato.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 1c0dac3

Please sign in to comment.