Skip to content

Commit 9357325

Browse files
committed
reinforce column immutability. I could never reproduce this error
interactively, only via python setup.py test
1 parent d6c8e05 commit 9357325

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
@@ -4,6 +4,7 @@
44
import os
55
import warnings
66
import json
7+
import copy
78

89
from astropy.extern import six
910
import astropy.units as u
@@ -460,7 +461,7 @@ def _args_to_payload(self, *args, **kwargs):
460461
# process: columns
461462
columns = kwargs.get('columns')
462463
if columns is None:
463-
columns = self.columns
464+
columns = copy.copy(self.columns)
464465
else:
465466
columns = self.columns + columns
466467

0 commit comments

Comments
 (0)