mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
correct crash on edge case
This commit is contained in:
parent
47f94bde04
commit
fbbbba2fac
@ -488,7 +488,7 @@ def select_and_download_models(opt: Namespace):
|
|||||||
else:
|
else:
|
||||||
myapplication = AddRemoveModelApplication()
|
myapplication = AddRemoveModelApplication()
|
||||||
myapplication.run()
|
myapplication.run()
|
||||||
models_to_download = dict(map(lambda x: (x, True), myapplication.selected_models))
|
models_to_download = dict(map(lambda x: (x, True), myapplication.selected_models)) if myapplication.selected_models else None
|
||||||
|
|
||||||
if not models_to_download:
|
if not models_to_download:
|
||||||
print(
|
print(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user