Skip to content

Commit

Permalink
actually throw the KeyError
Browse files Browse the repository at this point in the history
  • Loading branch information
mileslucas committed Nov 2, 2020
1 parent b80c138 commit 6299ade
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/BetaPictoris.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/HR8799.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/V471Tau.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

2 comments on commit 6299ade

@mileslucas
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/24064

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.3 -m "<description of version>" 6299ade637f9256da1c502c30da22ee2cbb3eb2a
git push origin v0.1.3

Please sign in to comment.