From 725b349b828bfae4fe3261f9c1b1aa74f389fef5 Mon Sep 17 00:00:00 2001 From: Andrew White Date: Mon, 27 Jul 2026 07:30:11 -0500 Subject: [PATCH] fix: except BaseException silently swallows all errors --- utils/metrics_features_utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/utils/metrics_features_utils.py b/utils/metrics_features_utils.py index c79943e..243f3a2 100644 --- a/utils/metrics_features_utils.py +++ b/utils/metrics_features_utils.py @@ -451,6 +451,5 @@ def write_metrics_to_h5(mode, grasp_ind, oris, num_grasp_poses, hf.close() - except BaseException: - print("Couldn't record data") - pass + except Exception as exc: + print("Couldn't record data:", exc)