fix(spotlight): log exception when removing stale GLib source IDs

except Exception: pass was hiding errors during pipeline cancellation.
This commit is contained in:
sankalp committed 2026-07-18 14:14:09 +05:45
1 parent 1d3cecc255
commit 4d90a1ab52
1 file changed
+2 -2
+2 -2
View File
@@ -80,8 +80,8 @@ class SearchPipeline:
for source_id in self._pending_idle_ids:
try:
GLib.source_remove(source_id)
except Exception:
pass
except Exception as e:
logger.debug(f"[search] Failed to remove source {source_id}: {e}")
self._pending_idle_ids.clear()
def _route(self, query: str) -> tuple[PluginEntry | None, str, str]: