From 42949699cc566f002af203c53acb109cff5be96c Mon Sep 17 00:00:00 2001 From: Thorsten S Date: Fri, 20 Nov 2015 22:04:42 +0100 Subject: [PATCH] fix attribute access on non-functions, pt2 --- plugins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins.py b/plugins.py index 244b861..e520d94 100644 --- a/plugins.py +++ b/plugins.py @@ -979,7 +979,7 @@ def register(func_type): isinstance(f, types.FunctionType) and all([ f.__dict__.get('is_plugin', False), - getattr(f, 'plugin_type') == func_type + getattr(f, 'plugin_type', None) == func_type ]) ]