Add exception handler to load_checkpoint() (#2904)
This commit is contained in:
parent
c95009d2bd
commit
5008daa0ff
1 changed files with 4 additions and 2 deletions
|
@ -286,12 +286,14 @@ def get_checkpoints():
|
|||
|
||||
|
||||
def load_checkpoint(checkpoint):
|
||||
|
||||
payload = {
|
||||
"sd_model_checkpoint": checkpoint
|
||||
}
|
||||
|
||||
requests.post(url=f'{params["address"]}/sdapi/v1/options', json=payload)
|
||||
try:
|
||||
requests.post(url=f'{params["address"]}/sdapi/v1/options', json=payload)
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
def get_samplers():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue