update err msg

pull/64/head
butaixianran 2023-03-17 20:53:42 +08:00
parent ae9884430a
commit d11cfd5dbd
2 changed files with 7 additions and 0 deletions

View File

@ -203,6 +203,9 @@ Since v1.5.5, we've already optimized the SHA256 function to the top. So the onl
# Change Log
## v1.5.6
* update error msg when can not connect to civitai API service
## v1.5.5
* update SHA256 function, now it just use the code from pip

View File

@ -207,6 +207,10 @@ def get_model_info_by_url(model_url_or_id:str) -> tuple:
return
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:
util.printD("failed to get model info from url or id")
return