misc: Catch all Base64 decoding errors

This commit is contained in:
Holger Weiss 2018-04-24 18:29:10 +02:00
parent f3795e9d03
commit 538e0d4844
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ term_to_base64(Term) ->
base64_to_term(Base64) ->
try binary_to_term(base64:decode(Base64), [safe]) of
Term -> {term, Term}
catch _:badarg ->
catch _:_ ->
error
end.