From 5cb2c69a8583802ec3f22201aed2af4eddf82e07 Mon Sep 17 00:00:00 2001 From: nik Date: Tue, 9 Apr 2024 19:47:58 +0100 Subject: [PATCH] Add error logging in DINO --- label_studio_ml/examples/grounding_dino/dino.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/label_studio_ml/examples/grounding_dino/dino.py b/label_studio_ml/examples/grounding_dino/dino.py index 7851aa961..4aea7b6e6 100644 --- a/label_studio_ml/examples/grounding_dino/dino.py +++ b/label_studio_ml/examples/grounding_dino/dino.py @@ -183,7 +183,8 @@ def one_task(self, task): ls_host=LABEL_STUDIO_HOST, task_id=task.get('id') ) - except: + except Exception as e: + logger.error(f"Error getting image path: {e}") img_path = raw_img_path src, img = load_image(img_path)