From ab7d09dd7b7f59251d6535aafab0e8ec9a7224a1 Mon Sep 17 00:00:00 2001 From: Luke Elliott Date: Wed, 16 Aug 2023 18:32:47 +0100 Subject: [PATCH] fix: dynamic_import() import path split --- semantic_release/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/semantic_release/helpers.py b/semantic_release/helpers.py index 1c7219864..2780ffbb0 100644 --- a/semantic_release/helpers.py +++ b/semantic_release/helpers.py @@ -67,7 +67,7 @@ def dynamic_import(import_path: str) -> Any: string """ log.debug("Trying to import %s", import_path) - module_name, _, attr = import_path.split(":", maxsplit=1) + module_name, attr = import_path.split(":", maxsplit=1) module = importlib.import_module(module_name) return getattr(module, attr)