diff --git a/R/query_gn.R b/R/query_gn.R index c88d85f..e42f972 100644 --- a/R/query_gn.R +++ b/R/query_gn.R @@ -12,7 +12,8 @@ query_gn <- result <- httr::GET(url) httr::stop_for_status(result) result <- httr::content(result, encoding=encoding, as=output) - + result[unlist(lapply(result, is.null))] = NA + check_gn_error(result) }