File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
astroquery/ipac/nexsci/nasa_exoplanet_archive Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,10 @@ def get_tap_tables():
104
104
"""Tables accessed by API are gradually migrating to TAP service. Generate current list of tables in TAP."""
105
105
tap = pyvo .dal .tap .TAPService (baseurl = conf .url_tap )
106
106
response = tap .search (query = "select * from TAP_SCHEMA.tables" , language = "ADQL" )
107
- tables = [table for table in response ["table_name" ].data if "TAP_SCHEMA." not in table ]
107
+ if not commons .ASTROPY_LT_4_1 :
108
+ tables = [table for table in response ["table_name" ].data if "TAP_SCHEMA." not in table ]
109
+ else :
110
+ tables = [table .decode () for table in response ["table_name" ].data if b"TAP_SCHEMA." not in table ]
108
111
return tables
109
112
110
113
You can’t perform that action at this time.
0 commit comments