mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-17 14:04:27 +01:00
Added exit message on KeyboardInterrupt
This commit is contained in:
@@ -2,5 +2,7 @@ def clean_input(prompt: str=''):
|
||||
try:
|
||||
return input(prompt)
|
||||
except KeyboardInterrupt:
|
||||
print("You interrupted Auto-GPT")
|
||||
print("Quitting...")
|
||||
exit(0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user