mirror of
https://github.com/weyne85/PentestGPT.git
synced 2025-10-29 16:58:59 +00:00
fix issue with error message handling
This commit is contained in:
parent
6aa1f0b8d9
commit
4099ad5ea4
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user