fix issue with error message handling

This commit is contained in:
Liu 2023-05-02 16:22:30 +08:00
parent 6aa1f0b8d9
commit 4099ad5ea4

View File

@ -495,7 +495,7 @@ class pentestGPT:
break
except Exception as e: # catch all general exception.
# log the exception
self.log_conversation("exception", "e")
self.log_conversation("exception", str(e))
# print the exception
self.console.print("Exception: " + str(e), style="bold red")
# safely quit the session