Skip to content

Commit

Permalink
Enhance error handling for current model version retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
safoinme committed Nov 27, 2024
1 parent 74baad4 commit 692798e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def compute_performance_metrics_on_current_data(
try:
current_version = Model(name=latest_version.name, version=target_env)
current_version_number = current_version.number
except KeyError:
except (RuntimeError, KeyError):
current_version_number = None

if current_version_number is None:
Expand Down

0 comments on commit 692798e

Please sign in to comment.