From ffa376719887a68cb5e1419f5f38487d3fc6c74c Mon Sep 17 00:00:00 2001 From: DLmaster Date: Tue, 28 Jan 2025 14:53:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(package):=20=E5=9B=BA=E5=AE=9Anuitka?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/core/timer.py | 6 +++++- requirements.txt | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/core/timer.py b/app/core/timer.py index 11b9008..efd46f7 100644 --- a/app/core/timer.py +++ b/app/core/timer.py @@ -45,6 +45,8 @@ class MainTimer(QWidget): ): super().__init__(parent) + self.if_FailSafeException = False + self.Timer = QTimer() self.Timer.timeout.connect(self.timed_start) self.Timer.timeout.connect(self.set_silence) @@ -100,7 +102,9 @@ class MainTimer(QWidget): ] ) except pyautogui.FailSafeException as e: - logger.warning(f"FailSafeException: {e}") + if not self.if_FailSafeException: + logger.warning(f"FailSafeException: {e}") + self.if_FailSafeException = True def search_queue(self) -> list: """搜索所有调度队列实例""" diff --git a/requirements.txt b/requirements.txt index a07d74e..07223d6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,4 +8,4 @@ pywin32 pyautogui pycryptodome requests -nuitka \ No newline at end of file +nuitka==2.6 \ No newline at end of file