From 4d90a1ab52c9ad93e000f1f6577574206f18fc9b Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Sat, 18 Jul 2026 14:14:09 +0545 Subject: [PATCH] fix(spotlight): log exception when removing stale GLib source IDs except Exception: pass was hiding errors during pipeline cancellation. --- src/window/spotlight/core/search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/window/spotlight/core/search.py b/src/window/spotlight/core/search.py index 46c74c2..6035b15 100644 --- a/src/window/spotlight/core/search.py +++ b/src/window/spotlight/core/search.py @@ -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]: