diff --git a/ws/tolwsbooting.cpp b/ws/tolwsbooting.cpp index ecafc722..92bbd6e9 100644 --- a/ws/tolwsbooting.cpp +++ b/ws/tolwsbooting.cpp @@ -345,7 +345,7 @@ string taxon_addition_method_handler( const json& parsedargs ) // But this just handles one addition. auto [locked_taxonomy,lock] = tts.get_writable_taxonomy(); - auto taxa = parsedargs["taxa"]; + auto taxa = extract_required_argument(parsedargs, "taxa"); int num_new_ottids = extract_required_argument(parsedargs, "new_ottids_required"); if (taxa.size() > num_new_ottids) throw OTCBadRequest() << "Amendment mentions "<