Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
builderjer committed Jan 8, 2025
1 parent 6cea6dd commit 8b0dced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ovos_PHAL_plugin_mk1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b0dced

Please sign in to comment.