Skip to content

Commit 7442be3

Browse files
authored
[Core] Catch more general errors when loading wheels checks (#3662)
1 parent d4248cd commit 7442be3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ def _get_check_module(check_name, check_path, from_site=False):
867867
if from_site:
868868
try:
869869
check_module = import_module("datadog_checks.{}".format(check_name))
870-
except ImportError as e:
870+
except Exception as e:
871871
error = e
872872
# Log at debug level since this code path is expected if the check is not installed as a wheel
873873
log.debug('Unable to import check module %s from site-packages: %s', check_name, e)

0 commit comments

Comments
 (0)