From ac3a0caedd2c25a5d77f7a42d8733bfa79031c37 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 31 Oct 2014 13:02:32 +0100 Subject: fix bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/plugins/users.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3-70-g09d2