From 8b0dced0cb49cdb12af7bcc30214ec90eae8aab8 Mon Sep 17 00:00:00 2001 From: builderjer Date: Wed, 8 Jan 2025 06:09:06 -0700 Subject: [PATCH] fix --- ovos_PHAL_plugin_mk1/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ovos_PHAL_plugin_mk1/__init__.py b/ovos_PHAL_plugin_mk1/__init__.py index 39b3937..2be073c 100644 --- a/ovos_PHAL_plugin_mk1/__init__.py +++ b/ovos_PHAL_plugin_mk1/__init__.py @@ -33,7 +33,7 @@ def validate(config=None): If it returns False the plugin is not loaded. This allows a plugin to run platform checks""" cfg = config or Configuration().get("PHAL").get("ovos-PHAL-plugin-mk1") - if cfg.get("enabled") == True: + if cfg and cfg.get("enabled") == True: return True if is_mark_1(): return True