aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/users.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/users.py')
-rw-r--r--src/plugins/users.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/users.py b/src/plugins/users.py
index a7388e3..e5124f0 100644
--- a/src/plugins/users.py
+++ b/src/plugins/users.py
@@ -101,7 +101,10 @@ class Users:
if user in users:
user = users[user]
else:
- users[user] = user = pwd.getpwuid(user).pw_name
+ try:
+ users[user] = user = pwd.getpwuid(user).pw_name
+ except:
+ users[user] = user = str(user)
rc.append((user, tty))
return rc