From 99d4aa99992fc05c6d6fa6edc1c918f2cb904cb4 Mon Sep 17 00:00:00 2001 From: illvart Date: Sun, 15 Mar 2026 08:49:50 +0700 Subject: [PATCH] update --- getter/__init__.py | 2 +- getter/__main__.py | 9 ++++----- manifest.json | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/getter/__init__.py b/getter/__init__.py index 504559e..43bd96c 100644 --- a/getter/__init__.py +++ b/getter/__init__.py @@ -5,7 +5,7 @@ import sys from asyncio import set_event_loop -from concurrent.futures.thread import ThreadPoolExecutor +from concurrent.futures import ThreadPoolExecutor from pathlib import Path from platform import python_version from shutil import rmtree diff --git a/getter/__main__.py b/getter/__main__.py index 4cb0786..f960b94 100644 --- a/getter/__main__.py +++ b/getter/__main__.py @@ -98,11 +98,10 @@ async def main() -> None: try: getter_app.run_in_loop(main()) getter_app.run() - except (KeyboardInterrupt, SystemExit): - LOG.warning("[MAIN] - Manual stop signal received.") - sys.exit(0) + except KeyboardInterrupt: + LOG.warning("[APP] Shutdown signal received.") except Exception as err: - LOG.exception(f"[MAIN_ERROR]: {err}") + LOG.exception(f"[APP] Unhandled exception: {err}") sys.exit(1) finally: - LOG.warning("[MAIN] - Stopped...") + LOG.warning("[APP] Stopped.") diff --git a/manifest.json b/manifest.json index 3303094..3b12962 100644 --- a/manifest.json +++ b/manifest.json @@ -1,3 +1,3 @@ { - "version": "2.3.4" + "version": "2.3.5" } \ No newline at end of file