Skip to content

Commit

Permalink
make get_wormsid not crash when rows specified and query not found
Browse files Browse the repository at this point in the history
relates to #919
  • Loading branch information
zachary-foster committed Nov 9, 2023
1 parent 2690950 commit d067035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/get_wormsid.R
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ worms_worker <- function(x, expr, rows, marine_only, fuzzy, ...) {
class(rows) %in% c('numeric', 'integer') &&
rows[length(rows)] <= 50
) {
expr(x, marine_only = marine_only, fuzzy = fuzzy, ...)
try_df(expr(x, marine_only = marine_only, fuzzy = fuzzy, ...))
} else if (
all(!is.na(rows)) &&
class(rows) %in% c('numeric', 'integer') &&
Expand Down

0 comments on commit d067035

Please sign in to comment.