We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 186d16a commit 151c609Copy full SHA for 151c609
1 file changed
src/scripts/generate_driver_models.py
@@ -7,6 +7,10 @@ def load_pydantic_model_builder():
7
spec = importlib.util.spec_from_file_location(
8
"pydantic_model_builder", "src/videoipath_automation_tool/utils/pydantic_model_builder.py"
9
)
10
+
11
+ if spec is None or spec.loader is None:
12
+ raise ValueError("Failed to load pydantic_model_builder module")
13
14
module = importlib.util.module_from_spec(spec)
15
spec.loader.exec_module(module)
16
return module
0 commit comments