mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-02-02 06:51:22 +01:00
Better logs
This commit is contained in:
@@ -4,6 +4,7 @@ from __future__ import print_function, unicode_literals
|
||||
import sys
|
||||
|
||||
from dotenv import load_dotenv
|
||||
from termcolor import colored
|
||||
load_dotenv()
|
||||
|
||||
from helpers.Project import Project
|
||||
@@ -38,6 +39,9 @@ if __name__ == "__main__":
|
||||
except KeyboardInterrupt:
|
||||
exit_gpt_pilot()
|
||||
except Exception as e:
|
||||
print(colored('---------- GPT PILOT EXITING WITH ERROR ----------', 'red'))
|
||||
print(colored(e, 'red'))
|
||||
print(colored('--------------------------------------------------', 'red'))
|
||||
exit_gpt_pilot()
|
||||
finally:
|
||||
sys.exit(0)
|
||||
|
||||
Reference in New Issue
Block a user