1
0
mirror of http://aero2k.de/t/repos/urlbot-native.git synced 2017-09-06 15:25:38 +02:00

fix attribute access on non-functions

This commit is contained in:
Thorsten S
2015-11-20 22:02:28 +01:00
parent 17d1cd1b54
commit 41f2595347

View File

@@ -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
])
]