From ad285937f30ac98fdc59231ee8bc65f4a33dc522 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Mon, 14 Aug 2017 00:50:35 +0200 Subject: [PATCH] [mod] to the real test --- src/yunohost/user.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/yunohost/user.py b/src/yunohost/user.py index d2834b7bf..6b10af249 100644 --- a/src/yunohost/user.py +++ b/src/yunohost/user.py @@ -80,10 +80,9 @@ def user_list(auth, fields=None): for user in result: entry = {} for attr, values in user.items(): - try: + if values: entry[user_attrs[attr]] = values[0] - except: - pass + uid = entry[user_attrs['uid']] users[uid] = entry