diff --git a/src/ofxstatement/plugin.py b/src/ofxstatement/plugin.py index 6a95ecc..5f38a46 100644 --- a/src/ofxstatement/plugin.py +++ b/src/ofxstatement/plugin.py @@ -9,14 +9,15 @@ from ofxstatement.ui import UI from ofxstatement.parser import AbstractStatementParser + def get_plugin(name: str, ui: UI, settings: MutableMapping) -> "Plugin": plugins = entry_points(name=name) - if not plugins: + if not plugins: raise PluginNotRegistered(name) if len(plugins) > 1: raise PluginNameConflict(plugins) plugin = plugins[0].load() - return plugin(ui,settings) + return plugin(ui, settings) def list_plugins() -> List[Tuple[str, Type["Plugin"]]]: