Skip to content

Commit

Permalink
fix tables to pass test
Browse files Browse the repository at this point in the history
  • Loading branch information
zoghbi-a committed Oct 18, 2024
1 parent 9a5ce5a commit 91bd43a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions astroquery/heasarc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ def tables(self, *, master=False, keywords=None):
`~astropy.table.Table` with columns: name, description
"""
if isinstance(keywords, str):
if not isinstance(keywords, list):
keywords = [keywords]
if not all([isinstance(wrd, str) for wrd in keywords]):
raise ValueError('non-str found in keywords elements')
if not all([isinstance(wrd, str) for wrd in keywords]):
raise ValueError('non-str found in keywords elements')

# use 'mast' to include both 'master' and 'mastr'
names, desc = [], []
Expand Down

0 comments on commit 91bd43a

Please sign in to comment.