From 198c54cbd6e7757112600a80793936e346a24347 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Tue, 15 Aug 2023 19:57:51 +0200
Subject: [PATCH] [script.evaluate] Improve exception message

---
 src/ptbench/scripts/evaluate.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ptbench/scripts/evaluate.py b/src/ptbench/scripts/evaluate.py
index 3f4c00f6..7f3df261 100644
--- a/src/ptbench/scripts/evaluate.py
+++ b/src/ptbench/scripts/evaluate.py
@@ -178,7 +178,7 @@ def evaluate(
         f1_threshold = threshold
         eer_threshold = f1_threshold
     else:
-        raise ValueError("Threshold value is neither an int nor a float")
+        raise ValueError("Threshold value is neither a str or a float")
 
     results_dict = {  # type: ignore
         "pred_data": defaultdict(dict),
-- 
GitLab