Open hannesdelbeke opened 2 years ago
move duplicate code regarding plugin validation, from plugins_from_module and register_plugin, into plugin_is_valid
plugins_from_module
register_plugin
plugin_is_valid
refactor only no new code.
swapped continue -> return False raise Exception -> return False
depending on where plugin_is_valid is used we then raise an exception or debug log anyway, so logic remains same.
now there's no more dupe code for plugin validation, and it's all in the place where we expect it: the plugin_is_valid function
this should be ready for merge if we are happy with this
move duplicate code regarding plugin validation, from
plugins_from_module
andregister_plugin
, intoplugin_is_valid
refactor only no new code.
swapped continue -> return False raise Exception -> return False
depending on where
plugin_is_valid
is used we then raise an exception or debug log anyway, so logic remains same.now there's no more dupe code for plugin validation, and it's all in the place where we expect it: the
plugin_is_valid
function