Skip to content

Commit 64edb0f

Browse files
committed
EMove the / to . replcement only for import_module call, error message was impacted
1 parent ddf8fd6 commit 64edb0f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

awslambdaric/bootstrap.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ def _get_handler(handler):
3636
"Cannot use built-in module {} as a handler module".format(modname),
3737
)
3838
return make_fault_handler(fault)
39-
modname = modname.replace("/", ".")
40-
m = importlib.import_module(modname)
39+
m = importlib.import_module(modname.replace("/", "."))
4140
except ImportError as e:
4241
fault = FaultException(
4342
FaultException.IMPORT_MODULE_ERROR,

0 commit comments

Comments
 (0)