Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
bryango committed May 24, 2024
1 parent 2fdd3c4 commit 159935a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Mailnag/common/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@ def load_plugins(cfg, mailnag_controller = None, filter_names = None):
plugins = []
plugin_types = Plugin._load_plugin_types()

for modname, t in plugin_types:
for modname, t in plugin_types:
try:
if (filter_names == None) or (modname in filter_names):
if (filter_names is None) or (modname in filter_names):
p = t()
p.init(modname, cfg, mailnag_controller)
plugins.append(p)
Expand Down Expand Up @@ -278,7 +278,7 @@ def _load_plugin_types():
attr = getattr(mod, attr_name)
if not inspect.isclass(attr):
continue
if issubclass(attr, Plugin):
if issubclass(attr, Plugin) and attr != Plugin:
plugin_types.append((modname, attr))
except:
logging.exception("Error while opening plugin file '%s'" % f)
Expand Down

0 comments on commit 159935a

Please sign in to comment.