Skip to content

Commit

Permalink
fix: minor logging correction
Browse files Browse the repository at this point in the history
  • Loading branch information
danellecline committed Oct 24, 2024
1 parent d13136e commit 544f3b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aipipeline/db_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ def get_version_id(api: TatorApi, project: Project, version: str) -> int:
# Find the version by name
version_match = [v for v in versions if v.name == version]
if len(version_match) == 0:
logger.err(f"Could not find version {version}")
logger.error(f"Could not find version {version}")
raise ValueError(f"Could not find version {version}")
if len(version_match) > 1:
logger.err(f"Found multiple versions with name {version}")
logger.error(f"Found multiple versions with name {version}")
raise ValueError(f"Found multiple versions with name {version}")
return version_match[0].id

Expand Down

0 comments on commit 544f3b7

Please sign in to comment.