Add exception handler to load_checkpoint() (#2904)

This commit is contained in:
missionfloyd 2023-06-27 19:00:29 -06:00 committed by GitHub
parent c95009d2bd
commit 5008daa0ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
} }
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(): def get_samplers():