From 6e53c7a8e95fad22a37e9a9b4129045f12f3fb44 Mon Sep 17 00:00:00 2001 From: blankie Date: Sat, 8 Apr 2023 23:34:55 +0700 Subject: [PATCH] Check for the existence of display_tags --- pixivmodels.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pixivmodels.cpp b/pixivmodels.cpp index 652c989..890daf3 100644 --- a/pixivmodels.cpp +++ b/pixivmodels.cpp @@ -107,7 +107,7 @@ void from_json(const nlohmann::json& j, Illust& illust) { if (!comment_html.empty()) { illust.comment_html = std::move(comment_html); } - illust_details["display_tags"].get_to(illust.tags); + illust_details.at("display_tags").get_to(illust.tags); } if (illust_details.contains("manga_a")) {