From ba895b07ee8925939ade1e9a723a1a4810864904 Mon Sep 17 00:00:00 2001 From: cibere <71997063+cibere@users.noreply.github.com> Date: Thu, 26 Dec 2024 00:40:20 -0800 Subject: [PATCH] fix root lookup handler --- plugin/handlers/lookup_handler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/handlers/lookup_handler.py b/plugin/handlers/lookup_handler.py index ebb7133..52ee370 100644 --- a/plugin/handlers/lookup_handler.py +++ b/plugin/handlers/lookup_handler.py @@ -22,13 +22,13 @@ async def callback(self, query: Query): f"Library '{library}' not found in settings", icon="Images/error.png" ) - if text is None: + if not text: return Result.create_with_partial( - partial(self.plugin.api.open_url, url), title="Open documentation" + partial(self.plugin.api.open_url, url), title="Open documentation", icon=self.plugin.icons.get(library) ) if not hasattr(self.plugin, "_rtfm_cache"): - await self.plugin.build_rtfm_lookup_table() + await self.plugin.build_rtfm_lookup_tables() try: cache = list(self.plugin._rtfm_cache[library].items())