Don't stop roster table conversion on broken askmessage

This commit is contained in:
Evgeniy Khramtsov 2014-06-09 10:54:51 +04:00
parent 62be3bc111
commit 87f8c2ecd8
1 changed files with 2 additions and 1 deletions

View File

@ -1319,7 +1319,8 @@ update_roster_table() ->
iolist_to_binary(R2)},
name = iolist_to_binary(Name),
groups = [iolist_to_binary(G) || G <- Gs],
askmessage = iolist_to_binary(Ask),
askmessage = try iolist_to_binary(Ask)
catch _:_ -> <<"">> end,
xs = [xml:to_xmlel(X) || X <- Xs]}
end);
_ ->