We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 151c609 commit 17376ceCopy full SHA for 17376ce
1 file changed
src/scripts/generate_overloads.py
@@ -7,6 +7,10 @@ def load_driver_settings():
7
spec = importlib.util.spec_from_file_location(
8
"drivers_module", "src/videoipath_automation_tool/apps/inventory/model/drivers.py"
9
)
10
+
11
+ if spec is None or spec.loader is None:
12
+ raise ValueError("Failed to load drivers module")
13
14
module = importlib.util.module_from_spec(spec)
15
spec.loader.exec_module(module)
16
return getattr(module, "DRIVER_ID_TO_CUSTOM_SETTINGS", {})
0 commit comments