update_manager: fix linter errors
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
6f6f535d6a
commit
d721ec5d9c
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue