From a0996b1c0aaf27d39dfc60b1bd5910e2ff3c6159 Mon Sep 17 00:00:00 2001 From: Brandon Rising Date: Tue, 30 Jan 2024 22:32:40 -0500 Subject: [PATCH] Fix ruff styling --- invokeai/backend/install/model_install_backend.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/invokeai/backend/install/model_install_backend.py b/invokeai/backend/install/model_install_backend.py index 601f83fc6f..fdbe714f62 100644 --- a/invokeai/backend/install/model_install_backend.py +++ b/invokeai/backend/install/model_install_backend.py @@ -330,7 +330,9 @@ class ModelInstall(object): with TemporaryDirectory(dir=self.config.models_path) as staging: CIVITAI_RE = r".*civitai.com.*" civit_url = re.match(CIVITAI_RE, url, re.IGNORECASE) - location = download_with_resume(url, Path(staging), access_token=self.civitai_api_key if civit_url else None) + location = download_with_resume( + url, Path(staging), access_token=self.civitai_api_key if civit_url else None + ) if not location: logger.error(f"Unable to download {url}. Skipping.") info = ModelProbe().heuristic_probe(location, self.prediction_helper)