Skip to content

Commit

Permalink
psucontrol_subpluginexample - Fix psucontrol helpers check
Browse files Browse the repository at this point in the history
  • Loading branch information
kantlivelong committed May 10, 2021
1 parent ff06627 commit 0b4e849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extra/psucontrol_subpluginexample.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self):

def on_startup(self, host, port):
psucontrol_helpers = self._plugin_manager.get_helpers("psucontrol")
if 'register_plugin' not in psucontrol_helpers.keys():
if not psucontrol_helpers or 'register_plugin' not in psucontrol_helpers.keys():
self._logger.warning("The version of PSUControl that is installed does not support plugin registration.")
return

Expand Down

0 comments on commit 0b4e849

Please sign in to comment.