Handle any errors when trying to get list of users
This commit is contained in:
parent
9799d3b105
commit
10bee71e6e
2 changed files with 13 additions and 4 deletions
|
|
@ -19,7 +19,12 @@ module HomeHelper
|
|||
end
|
||||
|
||||
def get_members
|
||||
users = list_all_users
|
||||
users_with_public_html(users)
|
||||
begin
|
||||
users = list_all_users
|
||||
rescue
|
||||
[]
|
||||
else
|
||||
users_with_public_html(users)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue