mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
extra check for empty hftoken
This commit is contained in:
parent
c013fe5b5d
commit
85ef3f51e7
@ -661,7 +661,7 @@ def write_opts(opts: Namespace, init_file: Path):
|
|||||||
with open(init_file,'w', encoding='utf-8') as file:
|
with open(init_file,'w', encoding='utf-8') as file:
|
||||||
file.write(new_config.to_yaml())
|
file.write(new_config.to_yaml())
|
||||||
|
|
||||||
if hasattr(opts,'hf_token'):
|
if hasattr(opts,'hf_token') and opts.hf_token:
|
||||||
HfLogin(opts.hf_token)
|
HfLogin(opts.hf_token)
|
||||||
|
|
||||||
# -------------------------------------
|
# -------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user