From 9bfeb53614778c79c45cf4a299f2b5416ccde8c2 Mon Sep 17 00:00:00 2001
From: Peter Cock
Date: Tue, 3 Dec 2024 23:58:47 +0000
Subject: [PATCH] Fix error message for missing /.md5 file
---
pyani/pyani_files.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyani/pyani_files.py b/pyani/pyani_files.py
index 3f10d35d..84c44f30 100644
--- a/pyani/pyani_files.py
+++ b/pyani/pyani_files.py
@@ -109,7 +109,7 @@ def get_fasta_and_hash_paths(dirname: Path = Path(".")) -> List[Tuple[Path, Path
hashfile = infile.with_suffix(".md5")
logger.warning(f"... trying {hashfile}.")
if not hashfile.is_file():
- raise PyaniFilesException("Alternate hashfile {hashfile} does not exist.")
+ raise PyaniFilesException(f"Alternate hashfile {hashfile} does not exist.")
outfiles.append((infile, hashfile))
return outfiles