mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
^C at invoke> cmd line exits gracefully
This commit is contained in:
parent
9e599c65c5
commit
3b2590243c
@ -95,7 +95,10 @@ def main():
|
||||
"\n* Initialization done! Awaiting your command (-h for help, 'q' to quit)"
|
||||
)
|
||||
|
||||
main_loop(gen, opt, infile)
|
||||
try:
|
||||
main_loop(gen, opt, infile)
|
||||
except KeyboardInterrupt:
|
||||
print("\ngoodbye!")
|
||||
|
||||
# TODO: main_loop() has gotten busy. Needs to be refactored.
|
||||
def main_loop(gen, opt, infile):
|
||||
|
Loading…
Reference in New Issue
Block a user