mirror of
https://github.com/sensebox/opensensmapr
synced 2025-06-04 04:06:09 +02:00
fixup! more robust error handling when API not available (#26)
This commit is contained in:
parent
563b48eac2
commit
740968eac0
1 changed files with 1 additions and 1 deletions
2
R/api.R
2
R/api.R
|
@ -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…
Add table
Reference in a new issue