From 41b880f9e9340bf4799835c398f662a1d297832d Mon Sep 17 00:00:00 2001 From: prernadh Date: Wed, 4 Dec 2024 23:20:09 +0530 Subject: [PATCH 1/2] Capturing the error better and bumping log level --- fiftyone/core/runs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fiftyone/core/runs.py b/fiftyone/core/runs.py index 442588798c1..536d073f765 100644 --- a/fiftyone/core/runs.py +++ b/fiftyone/core/runs.py @@ -135,9 +135,9 @@ def from_dict(cls, d): try: config_cls = etau.get_class(config_cls) - except: - logger.debug( - "Unable to load '%s'; falling back to base class", config_cls + except Exception as e: + logger.warning( + f"Unable to load {config_cls} due to {e}; falling back to base class" ) config_cls = cls.base_config_cls(type) From 8929baa50d7b16fa13515841caa1bef263ae061e Mon Sep 17 00:00:00 2001 From: prernadh Date: Thu, 12 Dec 2024 22:08:42 -0800 Subject: [PATCH 2/2] Updating error message --- fiftyone/core/runs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fiftyone/core/runs.py b/fiftyone/core/runs.py index 536d073f765..f9ecff22a12 100644 --- a/fiftyone/core/runs.py +++ b/fiftyone/core/runs.py @@ -137,7 +137,8 @@ def from_dict(cls, d): config_cls = etau.get_class(config_cls) except Exception as e: logger.warning( - f"Unable to load {config_cls} due to {e}; falling back to base class" + f"Unable to load {config_cls}; falling back to base class", + exc_info=True, ) config_cls = cls.base_config_cls(type)