From 91075af70e211bdcfa2a47a6160f03378212d88e Mon Sep 17 00:00:00 2001 From: Joe Knapper Date: Wed, 18 Mar 2026 14:51:32 +0000 Subject: [PATCH] Apply suggestions from code review of branch sigkill-handling Co-authored-by: Beth Probert --- src/openflexure_microscope_server/stitching.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/openflexure_microscope_server/stitching.py b/src/openflexure_microscope_server/stitching.py index 6e9d5107..311a00a4 100644 --- a/src/openflexure_microscope_server/stitching.py +++ b/src/openflexure_microscope_server/stitching.py @@ -11,7 +11,6 @@ import os import shlex import signal import subprocess -import sys import threading from typing import IO, Optional @@ -222,8 +221,7 @@ class PreviewStitcher(BaseStitcher): except lt.exceptions.InvocationCancelledError as e: with self._popen_lock: if self._popen_obj is not None: - # mypy requires the check to be here - if sys.platform == "win32": + if IS_WINDOWS: # Windows has no SIGKILL self._popen_obj.kill() else: