Skip to content

Commit

Permalink
Invert logic of PluginManager initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
unode committed May 31, 2021
1 parent d70793e commit 4509092
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mmpy_bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ def __init__(
self.manager = PluginManager(
[HelpPlugin(), ExamplePlugin(), WebHookExample()]
)
elif isinstance(plugins, list):
self.manager = PluginManager(plugins)
else:
elif isinstance(plugins, PluginManager):
self.manager = plugins
else:
self.manager = PluginManager(plugins)

# Use default settings if none were specified.
self.settings = settings or Settings()
Expand Down

0 comments on commit 4509092

Please sign in to comment.