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):
|
def load_checkpoint(checkpoint):
|
||||||
|
|
||||||
payload = {
|
payload = {
|
||||||
"sd_model_checkpoint": checkpoint
|
"sd_model_checkpoint": checkpoint
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try:
|
||||||
requests.post(url=f'{params["address"]}/sdapi/v1/options', json=payload)
|
requests.post(url=f'{params["address"]}/sdapi/v1/options', json=payload)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def get_samplers():
|
def get_samplers():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue