Skip to content

Commit 17376ce

Browse files
committed
fix types
1 parent 151c609 commit 17376ce

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/scripts/generate_overloads.py

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

0 commit comments

Comments
 (0)