Skip to content

Commit

Permalink
Refactor exception handling for current version retrieval in performa…
Browse files Browse the repository at this point in the history
…nce metrics computation
  • Loading branch information
safoinme committed Nov 27, 2024
1 parent 4b61d49 commit 5c29e59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def compute_performance_metrics_on_current_data(
current_version_number = None
try:
current_version = Model(name=latest_version.name, version=ModelStages.STAGING)
except (RuntimeError, KeyError):
except KeyError:
pass

if current_version_number is None:
Expand Down

0 comments on commit 5c29e59

Please sign in to comment.