mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-04-14 20:42:31 +08:00
Update app/model_manager.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
447b15b9a0
commit
ffd4a002ab
@ -88,11 +88,11 @@ class ModelFileManager:
|
||||
url = json_data.get("url", None)
|
||||
if url is None:
|
||||
logging.error("URL is not provided")
|
||||
return web.Response(status=401)
|
||||
return web.Response(status=400)
|
||||
save_dir = json_data.get("save_dir", None)
|
||||
if save_dir not in folder_paths.folder_names_and_paths:
|
||||
logging.error("Save directory is not valid")
|
||||
return web.Response(status=401)
|
||||
return web.Response(status=400)
|
||||
filename = json_data.get("filename", url.split("/")[-1])
|
||||
token = json_data.get("token", None)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user