From 86f7c651ceb86e3619a418b9479c3d3400dd1352 Mon Sep 17 00:00:00 2001 From: saloui Date: Tue, 18 Jul 2023 16:39:05 +0200 Subject: [PATCH] updated --- api/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/__init__.py b/api/__init__.py index a19daec3..bd5d96f1 100644 --- a/api/__init__.py +++ b/api/__init__.py @@ -36,6 +36,7 @@ from functools import partial def terminate_thread(thread): if thread: if not thread.is_alive(): + ASCIIColors.yellow("Thread not alive") return thread_id = thread.ident @@ -44,6 +45,8 @@ def terminate_thread(thread): if res > 1: ctypes.pythonapi.PyThreadState_SetAsyncExc(thread_id, None) raise SystemError("Failed to terminate the thread.") + else: + ASCIIColors.yellow("Canceled successfully") __author__ = "parisneo" __github__ = "https://github.com/ParisNeo/lollms-webui"