add final exception handling back

pull/147/head
yousefissa 2023-04-03 22:21:42 -07:00
parent 82da7f1681
commit 570c161e5e
1 changed files with 4 additions and 0 deletions

View File

@ -98,6 +98,10 @@ def print_assistant_thoughts(assistant_reply):
except json.decoder.JSONDecodeError:
print_to_console("Error: Invalid JSON\n", Fore.RED, assistant_reply)
# All other errors, return "Error: + error message"
except Exception as e:
call_stack = traceback.format_exc()
print_to_console("Error: \n", Fore.RED, call_stack)
def load_variables(config_file="config.yaml"):