Skip to content

Commit 5c29e59

Browse files
committed
Refactor exception handling for current version retrieval in performance metrics computation
1 parent 4b61d49 commit 5c29e59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

train_and_deploy/steps/promotion/compute_performance_metrics_on_current_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def compute_performance_metrics_on_current_data(
6565
current_version_number = None
6666
try:
6767
current_version = Model(name=latest_version.name, version=ModelStages.STAGING)
68-
except (RuntimeError, KeyError):
68+
except KeyError:
6969
pass
7070

7171
if current_version_number is None:

0 commit comments

Comments
 (0)