From d3020ce1a4be47992eb7e4b686fdcdfe8a62321c Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sun, 21 Dec 2025 11:42:31 +0100 Subject: [PATCH] Potential fix for code scanning alert no. 120: Empty except Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- cli/core/sounds.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/core/sounds.py b/cli/core/sounds.py index 8d1ca9e75a..b1a9631fd2 100644 --- a/cli/core/sounds.py +++ b/cli/core/sounds.py @@ -15,6 +15,7 @@ def init_multiprocessing() -> None: if get_start_method(allow_none=True) != "spawn": set_start_method("spawn", force=True) except RuntimeError: + # The start method can only be set once per interpreter; ignore if it was set elsewhere. pass # Prefer system audio backend by default (prevents simpleaudio segfaults in child processes)