Skip to content

Commit b192deb

Browse files
authored
Replace ModuleNotFoundError with ImportError (#158)
1 parent 4f21357 commit b192deb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elastic_transport/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
from elastic_transport._serializer import OrjsonSerializer # noqa: F401
104104

105105
__all__.append("OrjsonSerializer")
106-
except ModuleNotFoundError:
106+
except ImportError:
107107
pass
108108

109109
_logger = logging.getLogger("elastic_transport")

0 commit comments

Comments
 (0)