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