Skip to content

Commit 0b09eb6

Browse files
committed
Refactor exception handling in performance metrics computation to catch all exceptions
1 parent 5c29e59 commit 0b09eb6

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 KeyError:
68+
except Exception:
6969
pass
7070

7171
if current_version_number is None:

0 commit comments

Comments
 (0)