Merge pull request #48 from dealbreaker973/main

fix issue with error message handling
This commit is contained in:
Grey_D
2023-05-02 16:27:27 +08:00
committed by GitHub

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