From 6299ade637f9256da1c502c30da22ee2cbb3eb2a Mon Sep 17 00:00:00 2001 From: Miles Lucas Date: Mon, 2 Nov 2020 15:10:52 -0600 Subject: [PATCH] actually throw the KeyError --- src/BetaPictoris.jl | 2 +- src/HR8799.jl | 2 +- src/V471Tau.jl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BetaPictoris.jl b/src/BetaPictoris.jl index d409c47..263e23a 100644 --- a/src/BetaPictoris.jl +++ b/src/BetaPictoris.jl @@ -51,6 +51,6 @@ function Base.getindex(::Type{BetaPictoris}, key::Symbol) elseif key === :psf getdata(datadep"BetaPictoris/naco_betapic_psf.fits") else - KeyError(key) + throw(KeyError(key)) end end diff --git a/src/HR8799.jl b/src/HR8799.jl index 74ab252..c25f035 100644 --- a/src/HR8799.jl +++ b/src/HR8799.jl @@ -41,6 +41,6 @@ function Base.getindex(::Type{HR8799}, key::Symbol) elseif key === :pa getdata(datadep"HR8799/HR8799_pa.fits") else - KeyError(key) + throw(KeyError(key)) end end diff --git a/src/V471Tau.jl b/src/V471Tau.jl index 493d272..23ee48a 100644 --- a/src/V471Tau.jl +++ b/src/V471Tau.jl @@ -40,6 +40,6 @@ function Base.getindex(::Type{V471Tau}, key::Symbol) elseif key === :wl getdata(datadep"V471Tau/sphere_v471tau_wl.fits") else - KeyError(key) + throw(KeyError(key)) end end