Skip to content

Commit dc0ab55

Browse files
authored
fix failing top level module imports (#2963)
1 parent 5143938 commit dc0ab55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dlt/common/runtime/run_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def initial_providers(self) -> List[ConfigProvider]:
8181
def module(self) -> Optional[ModuleType]:
8282
try:
8383
return self.import_run_dir_module(self.run_dir)
84-
except ImportError:
84+
except (ImportError, TypeError):
8585
return None
8686

8787
@property

0 commit comments

Comments
 (0)