From 5035d497e91028c393fb1278243b6c950fedefa2 Mon Sep 17 00:00:00 2001 From: Theo Sanderson Date: Wed, 13 Sep 2023 00:02:00 +0100 Subject: [PATCH] Update utils.py --- taxoniumtools/src/taxoniumtools/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taxoniumtools/src/taxoniumtools/utils.py b/taxoniumtools/src/taxoniumtools/utils.py index 344e28a4..bb089540 100644 --- a/taxoniumtools/src/taxoniumtools/utils.py +++ b/taxoniumtools/src/taxoniumtools/utils.py @@ -28,7 +28,7 @@ def read_metadata(metadata_file, columns, key_column): metadata.set_index(key_column, inplace=True) # convert metadata to dict of rows if not metadata.index.is_unique: - print( + raise ValueError( f"Error: The key column '{key_column}' contains non-unique values in the metadata file." )