diff --git a/moonraker/components/update_manager/app_deploy.py b/moonraker/components/update_manager/app_deploy.py index 3b94975..ffe7567 100644 --- a/moonraker/components/update_manager/app_deploy.py +++ b/moonraker/components/update_manager/app_deploy.py @@ -482,7 +482,7 @@ class AppDeploy(BaseDeploy): await self.cmd_helper.run_cmd( f"virtualenv {self.venv_args} {env_path}", timeout=300.) except Exception: - self.log_exc(f"Error creating virtualenv") + self.log_exc("Error creating virtualenv") return if not self.py_exec.exists(): raise self.log_exc("Failed to create new virtualenv", False) diff --git a/moonraker/components/update_manager/git_deploy.py b/moonraker/components/update_manager/git_deploy.py index 10d4863..6d891c6 100644 --- a/moonraker/components/update_manager/git_deploy.py +++ b/moonraker/components/update_manager/git_deploy.py @@ -1259,7 +1259,8 @@ class GitRepo: # since the attept to repair failed, bypass retries # and immediately raise an exception raise self.server.error( - f"Unable to repair loose objects, use hard recovery") + "Unable to repair loose objects, use hard recovery" + ) retries -= 1 await asyncio.sleep(.5) await self._check_lock_file_exists(remove=True) diff --git a/moonraker/components/update_manager/system_deploy.py b/moonraker/components/update_manager/system_deploy.py index 9e70273..2a9e976 100644 --- a/moonraker/components/update_manager/system_deploy.py +++ b/moonraker/components/update_manager/system_deploy.py @@ -422,7 +422,7 @@ class PackageKitTransaction: status_code: int, percent_complete: int ) -> None: - status = PkEnum.Status.from_index(status_code) + status = PkEnum.Status.from_index(status_code) # noqa: F841 # NOTE: This signal doesn't seem to fire predictably, # nor does it seem to provide a consistent "percent complete" # parameter.