Changed log

This commit is contained in:
Zvonimir Sabljic
2023-09-18 19:18:00 -07:00
parent 5aac5e0385
commit 3e20f52b8a

View File

@@ -11,6 +11,8 @@ from termcolor import colored
from helpers.ipc import IPCClient
from const.ipc import MESSAGE_TYPE
from utils.utils import json_serial
from fabulous.color import red
from helpers.Project import Project
from utils.arguments import get_arguments
from utils.exit import exit_gpt_pilot
@@ -85,9 +87,9 @@ if __name__ == "__main__":
except KeyboardInterrupt:
exit_gpt_pilot()
except Exception as e:
print(colored('---------- GPT PILOT EXITING WITH ERROR ----------', 'red'))
print(red('---------- GPT PILOT EXITING WITH ERROR ----------'))
traceback.print_exc()
print(colored('--------------------------------------------------', 'red'))
print(red('--------------------------------------------------'))
exit_gpt_pilot()
finally:
sys.exit(0)