Mercurial > p > roundup > code
changeset 8450:df9fc9080e5a
fix: use getloing value --unknown-- on error.
In case there is a real user with name unknown, Unlikely for account to
to have dashes in name.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 17 Sep 2025 01:33:09 -0400 |
| parents | 756cdf8e34f2 |
| children | 401c6f0be6c5 |
| files | roundup/logcontext.py |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/roundup/logcontext.py Wed Sep 17 01:31:12 2025 -0400 +++ b/roundup/logcontext.py Wed Sep 17 01:33:09 2025 -0400 @@ -155,7 +155,7 @@ try: login = os.getlogin() except OSError: - login = "unknown" + login = "--unknown--" reason = "roundup-admin(%s): %s" % (login, args[1][:2]) elif location.startswith("file://"): reason = location
