Skip to content

Commit

Permalink
fix: dynamic_import() import path split (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukester1975 committed Aug 26, 2023
1 parent 3c7db14 commit 1007a06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion semantic_release/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 1007a06

Please sign in to comment.