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, pt2
This commit is contained in:
@@ -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
|
||||
])
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user