From 3f6a2b160753e4a0e5e77f85dd06a5469ea70704 Mon Sep 17 00:00:00 2001 From: voluntas Date: Tue, 16 Jan 2024 14:28:01 +0900 Subject: [PATCH] =?UTF-8?q?action=20=E3=81=8C=20optional=20=E3=81=AB?= =?UTF-8?q?=E3=81=AA=E3=81=A3=E3=81=9F=E3=81=AE=E3=81=A7=20boost:optional?= =?UTF-8?q?=20=E3=81=AB=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sora.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sora.cpp b/src/sora.cpp index c89ef2ed..2d2475ca 100644 --- a/src/sora.cpp +++ b/src/sora.cpp @@ -269,7 +269,7 @@ Sora::ConvertForwardingFilter(const nb::handle value) { try { auto object = forwarding_filter_value.as_object(); - filter.action = object["action"].as_string(); + filter.action = boost::optional(object["action"].as_string()); for (auto or_rule : object["rules"].as_array()) { std::vector rules; for (auto and_rule_value : or_rule.as_array()) {