Skip to content

Commit a0c72ad

Browse files
committed
Do not add -out when no columns are specified.
1 parent 52e25dd commit a0c72ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

astroquery/vizier/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,8 @@ def _args_to_payload(self, *args, **kwargs):
576576
if columns_default:
577577
body['-out'] = '*'
578578
else:
579-
body['-out'] = ','.join(columns_out)
579+
if columns_out:
580+
body['-out'] = ','.join(columns_out)
580581

581582
if columns_out:
582583
body['-out.add'] = ','.join(columns_out)

0 commit comments

Comments
 (0)