Skip to content

Commit

Permalink
issue #106: raise LabelInformationQueryError for label dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
k-allagbe committed Oct 17, 2024
1 parent 0903c45 commit 561b54d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fertiscan/db/queries/label/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 561b54d

Please sign in to comment.