diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-10-31 13:02:32 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-10-31 13:02:32 +0100 |
commit | ac3a0caedd2c25a5d77f7a42d8733bfa79031c37 (patch) | |
tree | ec83682481e0895765dcfb641aaa9cffcb9d7b4d | |
parent | update dist (diff) | |
download | xpybar-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 '')
-rw-r--r-- | src/plugins/users.py | 5 |
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 |