From 4099ad5ea48bfee0af6b85899df05be5f0764abd Mon Sep 17 00:00:00 2001 From: Liu Date: Tue, 2 May 2023 16:22:30 +0800 Subject: [PATCH] fix issue with error message handling --- utils/pentest_gpt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/pentest_gpt.py b/utils/pentest_gpt.py index 54fe295..0a0b318 100644 --- a/utils/pentest_gpt.py +++ b/utils/pentest_gpt.py @@ -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