Skip to content
This repository was archived by the owner on Dec 21, 2024. It is now read-only.

Commit 9b04c93

Browse files
committed
Fix bug from when .split() was used
1 parent a9d9f56 commit 9b04c93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pythonjsonlogger/jsonlogger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def _str_to_fn(self, fn_as_str):
134134
return fn_as_str
135135

136136
path, _, function = fn_as_str.rpartition('.')
137-
module = importlib.import_module('.'.join(path))
137+
module = importlib.import_module(path)
138138
return getattr(module, function)
139139

140140
def parse(self):

0 commit comments

Comments
 (0)