From c53df3af0092041635f4246142a6a1f122f5bde8 Mon Sep 17 00:00:00 2001 From: Mark Stemm Date: Mon, 9 Dec 2019 21:14:19 -0800 Subject: [PATCH] Don't rethrow exceptions in parse_k8s_audit_json Callers aren't expected to catch execeptions and instead rely on the bool return value to indicate whether or not the parsing was successful. Signed-off-by: Mark Stemm --- userspace/engine/falco_engine.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/userspace/engine/falco_engine.cpp b/userspace/engine/falco_engine.cpp index af764a45b0d..b8a9adda208 100644 --- a/userspace/engine/falco_engine.cpp +++ b/userspace/engine/falco_engine.cpp @@ -433,8 +433,6 @@ bool falco_engine::parse_k8s_audit_json(nlohmann::json &j, std::list } catch(exception &e) { - // Propagate the exception - rethrow_exception(current_exception()); return false; } }