Skip to content

Commit

Permalink
Fix new mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanDeMeyer committed Nov 14, 2024
1 parent 653adbe commit 5948535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkosi/sandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def become_user(uid: int, gid: int) -> None:
with open(f"/proc/{ppid}/uid_map", "wb") as f:
f.write(f"{uid} {os.getuid()} 1\n".encode())
except OSError as e:
os._exit(e.errno)
os._exit(e.errno or 1)
except BaseException:
os._exit(1)
else:
Expand Down

0 comments on commit 5948535

Please sign in to comment.