From 75d8a216c3554346cd4c9a0419323a1c6b970ac1 Mon Sep 17 00:00:00 2001 From: Josip Mrden <josip.mrden@memgraph.io> Date: Thu, 21 Mar 2024 12:44:26 +0100 Subject: [PATCH] Add const to exception --- include/mgp.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mgp.hpp b/include/mgp.hpp index 003ba6633..a792197c8 100644 --- a/include/mgp.hpp +++ b/include/mgp.hpp @@ -4401,7 +4401,7 @@ inline ExecutionHeaders ExecutionResult::Headers() const { return mgp::fetch_exe inline std::optional<ExecutionRow> ExecutionResult::PullOne() const { try { return ExecutionRow(mgp::MemHandlerCallback(pull_one, result_, graph_)); - } catch (std::exception &e) { + } catch (const std::exception &e) { return std::nullopt; } }