def setup(): config.add(api_key) config.add(page_load_timeout) if not api_key(): raise PluginSetupError("This plugin requires an API key to be chosen.") app.add(handle)