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
commit e2e51afff9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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