Skip to content

Commit

Permalink
Capturing error in loading a specific config class better and bumping…
Browse files Browse the repository at this point in the history
… log level (#5213)

* Capturing the error better and bumping log level

* Updating error message
  • Loading branch information
prernadh authored Dec 13, 2024
1 parent d58f23d commit b2734ab
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fiftyone/core/runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,10 @@ 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}; falling back to base class",
exc_info=True,
)
config_cls = cls.base_config_cls(type)

Expand Down

0 comments on commit b2734ab

Please sign in to comment.