fix attribute access on non-functions, pt2

This commit is contained in:
Thorsten S
2015-11-20 22:04:42 +01:00
parent e0485b4fb2
commit 42949699cc

View File

@@ -979,7 +979,7 @@ def register(func_type):
isinstance(f, types.FunctionType) and isinstance(f, types.FunctionType) and
all([ all([
f.__dict__.get('is_plugin', False), f.__dict__.get('is_plugin', False),
getattr(f, 'plugin_type') == func_type getattr(f, 'plugin_type', None) == func_type
]) ])
] ]