From 7442be337321440901608f92d94b1f47b23aa649 Mon Sep 17 00:00:00 2001 From: Nicholas Muesch Date: Thu, 8 Feb 2018 10:08:59 -0500 Subject: [PATCH] [Core] Catch more general errors when loading wheels checks (#3662) --- config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.py b/config.py index 375ed64060..91c9e5450e 100644 --- a/config.py +++ b/config.py @@ -867,7 +867,7 @@ def _get_check_module(check_name, check_path, from_site=False): if from_site: try: check_module = import_module("datadog_checks.{}".format(check_name)) - except ImportError as e: + except Exception as e: error = e # Log at debug level since this code path is expected if the check is not installed as a wheel log.debug('Unable to import check module %s from site-packages: %s', check_name, e)