Skip to content

Commit 47d993e

Browse files
bsipoczkeflavich
andcommitted
MAINT: accepting review suggestion to help future debug
Co-authored-by: Adam Ginsburg <[email protected]>
1 parent 0baf520 commit 47d993e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

astroquery/xmatch/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ def query(self, cat1, cat2, max_distance,
7777
if get_query_payload:
7878
return response
7979

80-
return Table.read(BytesIO(response.content), format='votable', use_names_over_ids=True)
80+
content = BytesIO(response.content)
81+
return Table.read(content, format='votable', use_names_over_ids=True)
8182

8283
@prepend_docstr_nosections("\n" + query.__doc__)
8384
def query_async(self, cat1, cat2, max_distance, colRA1=None, colDec1=None,

0 commit comments

Comments
 (0)