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:
@@ -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
|
||||
])
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user