Skip to content

Commit 949af33

Browse files
committed
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.
1 parent 0bd284b commit 949af33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/logcontext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def wrapper(*args, **kwargs):
155155
try:
156156
login = os.getlogin()
157157
except OSError:
158-
login = "unknown"
158+
login = "--unknown--"
159159
reason = "roundup-admin(%s): %s" % (login, args[1][:2])
160160
elif location.startswith("file://"):
161161
reason = location

0 commit comments

Comments
 (0)