aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/users.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-10-31 13:02:32 +0100
committerMattias Andrée <maandree@operamail.com>2014-10-31 13:02:32 +0100
commitac3a0caedd2c25a5d77f7a42d8733bfa79031c37 (patch)
treeec83682481e0895765dcfb641aaa9cffcb9d7b4d /src/plugins/users.py
parentupdate dist (diff)
downloadxpybar-1.4.1.tar.gz
xpybar-1.4.1.tar.bz2
xpybar-1.4.1.tar.xz
fix bug1.4.1
Signed-off-by: Mattias Andrée <maandree@operamail.com>
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