Skip to content

Commit

Permalink
Use args_in_kwargs for basemap error raising (#797)
Browse files Browse the repository at this point in the history
  • Loading branch information
willschlitzer authored Jan 21, 2021
1 parent d99708d commit 547a6fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygmt/base_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,7 @@ def basemap(self, **kwargs):
{t}
"""
kwargs = self._preprocess(**kwargs)
if not ("B" in kwargs or "L" in kwargs or "Td" in kwargs or "Tm" in kwargs):
if not args_in_kwargs(args=["B", "L", "Td", "Tm"], kwargs=kwargs):
raise GMTInvalidInput(
"At least one of frame, map_scale, compass, or rose must be specified."
)
Expand Down

0 comments on commit 547a6fc

Please sign in to comment.