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