update err msg
parent
ae9884430a
commit
d11cfd5dbd
|
|
@ -203,6 +203,9 @@ Since v1.5.5, we've already optimized the SHA256 function to the top. So the onl
|
||||||
|
|
||||||
|
|
||||||
# Change Log
|
# Change Log
|
||||||
|
## v1.5.6
|
||||||
|
* update error msg when can not connect to civitai API service
|
||||||
|
|
||||||
## v1.5.5
|
## v1.5.5
|
||||||
* update SHA256 function, now it just use the code from pip
|
* update SHA256 function, now it just use the code from pip
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -207,6 +207,10 @@ def get_model_info_by_url(model_url_or_id:str) -> tuple:
|
||||||
return
|
return
|
||||||
|
|
||||||
model_info = civitai.get_model_info_by_id(model_id)
|
model_info = civitai.get_model_info_by_id(model_id)
|
||||||
|
if model_info is None:
|
||||||
|
util.printD("Connect to Civitai API service failed. Wait a while and try again")
|
||||||
|
return
|
||||||
|
|
||||||
if not model_info:
|
if not model_info:
|
||||||
util.printD("failed to get model info from url or id")
|
util.printD("failed to get model info from url or id")
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue