From 41f25953477530063674de78976b49a08d8e152f Mon Sep 17 00:00:00 2001 From: Thorsten S Date: Fri, 20 Nov 2015 22:02:28 +0100 Subject: [PATCH] fix attribute access on non-functions --- plugins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins.py b/plugins.py index 7a8688e..3570e75 100644 --- a/plugins.py +++ b/plugins.py @@ -978,7 +978,7 @@ def register(func_type): f for ignored, f in globals().items() if all([ isinstance(f, types.FunctionType), f.__dict__.get('is_plugin', False), - f.plugin_type == func_type + getattr(f, 'plugin_type') == func_type ]) ]