Skip to content

Commit 4ce8da2

Browse files
committed
Return gracefully when it fails the download.
1 parent ede7208 commit 4ce8da2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/analemma.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ function enso(; data::Bool=false, data0::Bool=false, kwargs...)
238238
resp = Downloads.download("https://www.cpc.ncep.noaa.gov/data/indices/oni.ascii.txt")
239239
catch e
240240
error("Failed to download ENSO data from NOAA: $(e)")
241+
return nothing
241242
end
242243
lines = readlines(resp)
243244

0 commit comments

Comments
 (0)