diff --git a/src/json.cpp b/src/json.cpp index c06cd50..6c2a94b 100644 --- a/src/json.cpp +++ b/src/json.cpp @@ -64,20 +64,7 @@ entry_type from_json(const string_view json_string) #endif {} entry.tags = json[0].at("tags").get>(); - try - { - entry.report_time = json[0].at("report_time").get(); - } - // TODO: this is only necessary for compatibility with old test data. Remove - // before going live. -#if NLOHMANN_JSON_VERSION_MAJOR >= 3 - catch (const nlohmann::detail::out_of_range &) -#else - catch (const std::out_of_range &) -#endif - { - entry.report_time = "1970-01-01T00:00:00"; - } + entry.report_time = json[0].at("report_time").get(); return entry; }