Skip to content

Commit

Permalink
try removing multiple mports to resolve fast-mode issue
Browse files Browse the repository at this point in the history
Signed-off-by: novahow <[email protected]>
  • Loading branch information
novahow committed Jan 17, 2024
1 parent 892b474 commit f144c96
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions flytekit/core/tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ def import_module_from_file(module_name, file):
try:
spec = importlib.util.spec_from_file_location(module_name, file)
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
return module
except AssertionError:
# handle where we can't determine the module of functions within the module
return importlib.import_module(module_name)
except Exception as exc:
raise ModuleNotFoundError(f"Module from file {file} cannot be loaded") from exc

Expand Down

0 comments on commit f144c96

Please sign in to comment.