From 50e3fbd5c2a82a2101e547c91ed449c1be087754 Mon Sep 17 00:00:00 2001 From: Patrick Avery Date: Tue, 24 Feb 2026 16:53:08 -0600 Subject: [PATCH] Suppress harmless warning from loky Suppress harmless leaked semaphore warning from loky at shutdown Signed-off-by: Patrick Avery --- hexrdgui/main.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hexrdgui/main.py b/hexrdgui/main.py index a7a2e9c4e..283b8438a 100644 --- a/hexrdgui/main.py +++ b/hexrdgui/main.py @@ -4,6 +4,14 @@ import os import signal import sys +import warnings + +# Suppress harmless leaked semaphore warning from loky at shutdown +warnings.filterwarnings( + 'ignore', + message=r'resource_tracker:.*leaked semaphore', + category=UserWarning, +) if sys.platform.startswith('darwin'): # Prevent crashing when using OpenBLAS