From 792fa549a7762ab18883049e9282f229e2bb3adc Mon Sep 17 00:00:00 2001 From: naokiyokoyama Date: Tue, 2 Apr 2024 12:07:31 -0700 Subject: [PATCH] specifying type of error for ruff --- vlfm/utils/habitat_visualizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlfm/utils/habitat_visualizer.py b/vlfm/utils/habitat_visualizer.py index 96b7937..53e291d 100644 --- a/vlfm/utils/habitat_visualizer.py +++ b/vlfm/utils/habitat_visualizer.py @@ -266,7 +266,7 @@ def overlay_frame(frame: np.ndarray, info: Dict[str, Any], additional: Optional[ else: try: lines.append(f"{k}: {v:.2f}") - except: + except TypeError: pass if additional is not None: lines.extend(additional)