fixup! more robust error handling when API not available (#26)

development
Norwin 6 years ago
parent 563b48eac2
commit 740968eac0

@ -102,7 +102,7 @@ osem_get_resource = function (host, path, ..., type = 'parsed', progress = T, ca
}
res = osem_request_(host, path, query, type, progress)
if (!is.na(res) && !is.na(cache)) saveRDS(res, filename)
if (!is.na(cache)) saveRDS(res, filename)
res
}

Loading…
Cancel
Save