fix(spotlight): log exception when removing stale GLib source IDs
except Exception: pass was hiding errors during pipeline cancellation.
This commit is contained in:
1 file changed
+2
-2
@@ -80,8 +80,8 @@ class SearchPipeline:
|
|||||||
for source_id in self._pending_idle_ids:
|
for source_id in self._pending_idle_ids:
|
||||||
try:
|
try:
|
||||||
GLib.source_remove(source_id)
|
GLib.source_remove(source_id)
|
||||||
except Exception:
|
except Exception as e:
|
||||||
pass
|
logger.debug(f"[search] Failed to remove source {source_id}: {e}")
|
||||||
self._pending_idle_ids.clear()
|
self._pending_idle_ids.clear()
|
||||||
|
|
||||||
def _route(self, query: str) -> tuple[PluginEntry | None, str, str]:
|
def _route(self, query: str) -> tuple[PluginEntry | None, str, str]:
|
||||||
|
|||||||
Reference in new issue
Block a user