Fix: black error on pre-commit

This commit is contained in:
L0m1g 2025-05-03 16:19:45 +02:00
parent 63fc1ffd0e
commit 14a8f2b477
2 changed files with 5 additions and 2 deletions

View file

@ -8,6 +8,7 @@ test:
fmt: fmt:
black erminig tests black erminig tests
git add erminig tests
docker-build: docker-build:
podman-compose -f docker-compose.yml build podman-compose -f docker-compose.yml build

View file

@ -41,7 +41,9 @@ def run_as_user(username):
if pid > 0: if pid > 0:
# Parent : attendre le child, ne pas exit, juste return proprement # Parent : attendre le child, ne pas exit, juste return proprement
_, status = os.waitpid(pid, 0) _, status = os.waitpid(pid, 0)
return status >> 8 # récupère le code retour du fils (comme exit code) return (
status >> 8
) # récupère le code retour du fils (comme exit code)
# Child # Child
pw_record = pwd.getpwnam(username) pw_record = pwd.getpwnam(username)