Starting from Python 3.13, getpass.getuser() raises an OSError instead of a KeyError when the current UID doesn’t exist in /etc/passwd (i.e. when the user is ...