Skip to content

Commit a4357f6

Browse files
authored
Some nitpicky optimisation
1 parent 4f27027 commit a4357f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

astroquery/heasarc/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def locate_data(self, query_result=None, catalog_name=None):
495495
if isinstance(query_result, Row):
496496
query_result = query_result.table[[query_result.index]]
497497

498-
if not isinstance(query_result, Table):
498+
elif not isinstance(query_result, Table):
499499
raise TypeError(
500500
'query_result need to be an astropy.table.Table or '
501501
'astropy.table.Row'

0 commit comments

Comments
 (0)