Skip to content

Commit

Permalink
switching runtime error to import error
Browse files Browse the repository at this point in the history
  • Loading branch information
havok2063 committed Oct 21, 2020
1 parent bff4c40 commit a3e9bde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/sdssdb/utils/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ def display_table(pprint: bool = None, mask_dups: bool = False,
Raises
------
RuntimeError
ImportError
when astropy is not installed
"""
if not Table:
raise RuntimeError('No Table found. Astropy is not installed.')
raise ImportError('No Table found. Astropy is not installed.')

tt = []
for k, v in db_registry.items():
Expand Down

0 comments on commit a3e9bde

Please sign in to comment.