From 561b54d38548f6ebf0f7772a7a0780872892e274 Mon Sep 17 00:00:00 2001 From: "K. Allagbe" Date: Wed, 16 Oct 2024 23:05:18 -0400 Subject: [PATCH] issue #106: raise LabelInformationQueryError for label dimension --- fertiscan/db/queries/label/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fertiscan/db/queries/label/__init__.py b/fertiscan/db/queries/label/__init__.py index 90f1eaaf..f3efe3bc 100644 --- a/fertiscan/db/queries/label/__init__.py +++ b/fertiscan/db/queries/label/__init__.py @@ -184,7 +184,7 @@ def get_label_dimension(cursor, label_id): cursor.execute(query, (label_id,)) data = cursor.fetchone() if data is None or data[0] is None: - raise LabelInformationNotFoundError( + raise LabelInformationQueryError( "Error: could not get the label dimension for label: " + str(label_id) ) return data