Skip to content

Commit 151c609

Browse files
committed
fix types
1 parent 186d16a commit 151c609

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/scripts/generate_driver_models.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ def load_pydantic_model_builder():
77
spec = importlib.util.spec_from_file_location(
88
"pydantic_model_builder", "src/videoipath_automation_tool/utils/pydantic_model_builder.py"
99
)
10+
11+
if spec is None or spec.loader is None:
12+
raise ValueError("Failed to load pydantic_model_builder module")
13+
1014
module = importlib.util.module_from_spec(spec)
1115
spec.loader.exec_module(module)
1216
return module

0 commit comments

Comments
 (0)