1
0
Fork 0
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:
Norwin 2019-04-26 19:34:38 +02:00
parent 563b48eac2
commit 740968eac0

View file

@ -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
}