diff --git a/DDG4/python/DDSim/Helper/Meta.py b/DDG4/python/DDSim/Helper/Meta.py index 7b1e2f2e9..45b406da8 100644 --- a/DDG4/python/DDSim/Helper/Meta.py +++ b/DDG4/python/DDSim/Helper/Meta.py @@ -100,6 +100,9 @@ def addParametersToRunHeader(sim): # add User import getpass - runHeader["User"] = getpass.getuser() + try: + runHeader["User"] = getpass.getuser() + except KeyError: + runHeader["User"] = str(os.getuid()) return runHeader