From 538e0d4844ea43d6039d598717db62395604f21f Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Tue, 24 Apr 2018 18:29:10 +0200 Subject: [PATCH] misc: Catch all Base64 decoding errors --- src/misc.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc.erl b/src/misc.erl index cd8641e61..5904d1e67 100644 --- a/src/misc.erl +++ b/src/misc.erl @@ -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.