From e3aff2c23eba658238f313c288e452f15719eb8b Mon Sep 17 00:00:00 2001 From: JiaoPL Date: Wed, 18 Oct 2023 19:19:55 +0800 Subject: [PATCH] update try_import_send_exception --- internlm/monitor/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internlm/monitor/utils.py b/internlm/monitor/utils.py index 717e72f..0881897 100644 --- a/internlm/monitor/utils.py +++ b/internlm/monitor/utils.py @@ -43,5 +43,5 @@ def try_import_send_exception(): from uniscale_monitoring import send_exception_msg as send_exception return send_exception - except ModuleNotFoundError: + except ImportError: return None