Skip to content

Commit

Permalink
Fix bug in handler import module
Browse files Browse the repository at this point in the history
Signed-off-by: Hannah Stepanek <hstepanek@newrelic.com>
  • Loading branch information
hmstepanek committed Jul 17, 2023
1 parent aca37db commit 40101ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/newrelic_lambda_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def get_handler():
"Cannot use built-in module %s as a handler module" % module_path
)

module = importlib.import_module(module_path)
module = importlib.import_module(module_path.replace("/", "."))
except Exception as e:
raise ImportError("Failed to import module '%s': %s" % (module_path, e))

Expand Down

0 comments on commit 40101ba

Please sign in to comment.