update_manager: fix linter errors

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2023-10-07 10:36:49 -04:00
parent 6f6f535d6a
commit d721ec5d9c
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B
3 changed files with 4 additions and 3 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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.