From 7143f08c6ae7510460b9a4e7ff2f9fe8484ca08d Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Tue, 26 Mar 2024 17:45:43 +0400 Subject: [PATCH] Replace ModuleNotFoundError with ImportError --- elastic_transport/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elastic_transport/__init__.py b/elastic_transport/__init__.py index 063c4c0..786bc0d 100644 --- a/elastic_transport/__init__.py +++ b/elastic_transport/__init__.py @@ -103,7 +103,7 @@ from elastic_transport._serializer import OrjsonSerializer # noqa: F401 __all__.append("OrjsonSerializer") -except ModuleNotFoundError: +except ImportError: pass _logger = logging.getLogger("elastic_transport")