1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-05-12 01:45:04 +00:00

Fix bug about the ending "\n" in peername

This commit is contained in:
xiez 2012-04-15 23:47:18 +08:00
parent 6eb1848c6f
commit 43780a8551

View File

@ -301,6 +301,8 @@ def user_info(request, email):
try:
peernames = ccnet_rpc.get_peernames_by_userid(userid)
for peername in peernames.split('\n'):
if not peername:
continue
roles = ccnet_rpc.get_user(userid).props.role_list
user_dict[peername] = roles
except: