mirror of
https://github.com/weyne85/PentestGPT.git
synced 2025-10-29 16:58:59 +00:00
Merge pull request #48 from dealbreaker973/main
fix issue with error message handling
This commit is contained in:
@@ -495,7 +495,7 @@ class pentestGPT:
|
|||||||
break
|
break
|
||||||
except Exception as e: # catch all general exception.
|
except Exception as e: # catch all general exception.
|
||||||
# log the exception
|
# log the exception
|
||||||
self.log_conversation("exception", "e")
|
self.log_conversation("exception", str(e))
|
||||||
# print the exception
|
# print the exception
|
||||||
self.console.print("Exception: " + str(e), style="bold red")
|
self.console.print("Exception: " + str(e), style="bold red")
|
||||||
# safely quit the session
|
# safely quit the session
|
||||||
|
|||||||
Reference in New Issue
Block a user