mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix crash on second prompt #636
This commit is contained in:
@ -132,10 +132,7 @@ def main_loop(gen, opt, infile):
|
||||
): # in case a stored prompt still contains the !dream command
|
||||
command.replace('!dream','',1)
|
||||
|
||||
try:
|
||||
parser = opt.parse_cmd(command)
|
||||
except SystemExit:
|
||||
parser.print_help()
|
||||
if opt.parse_cmd(command) is None:
|
||||
continue
|
||||
if len(opt.prompt) == 0:
|
||||
print('\nTry again with a prompt!')
|
||||
|
Reference in New Issue
Block a user