modifications to pass pylint test

Signed-off-by: Mohammad Kazemi <mokazemi@disroot.org>
This commit is contained in:
Mohammad Kazemi 2025-03-01 12:34:58 +03:30
parent b748c2666c
commit f106ea0c01
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
[MESSAGES CONTROL]
# C0111 missing-docstring: missing-class-docstring, missing-function-docstring, missing-method-docstring, missing-module-docstrin
# consider-using-with: we need it for color formatter pipe
disable=too-many-lines,too-many-branches,too-many-locals,too-many-statements,too-many-arguments,too-many-instance-attributes,fixme,multiple-statements,missing-docstring,line-too-long,consider-using-f-string,consider-using-with,unnecessary-lambda-assignment
disable=too-many-lines,too-many-branches,too-many-locals,too-many-statements,too-many-arguments,too-many-instance-attributes,fixme,multiple-statements,missing-docstring,line-too-long,consider-using-f-string,consider-using-with,unnecessary-lambda-assignment,broad-exception-caught
# allow _ for ignored variables
# allow generic names like a,b,c and i,j,k,l,m,n and x,y,z
# allow k,v for key/value

View File

@ -2786,7 +2786,7 @@ async def compose_up(compose: PodmanCompose, args):
down_args = argparse.Namespace(**dict(args.__dict__, volumes=False))
await compose.commands["down"](compose, down_args)
except Exception as e:
log.error(f"Error during shutdown: {e}")
log.error("Error during shutdown: %s", e)
finally:
for task in tasks:
task.cancel()