File tree Expand file tree Collapse file tree 2 files changed +133
-135
lines changed Expand file tree Collapse file tree 2 files changed +133
-135
lines changed Original file line number Diff line number Diff line change 66import sys
77import re
88import os
9+ import warnings
910from astropy .io import ascii
1011from astropy .extern .six .moves .urllib_error import URLError
11- from astropy .extern .six import StringIO
1212from collections import OrderedDict
1313from ..query import BaseQuery
1414from ..utils import commons
@@ -428,9 +428,10 @@ def parse_besancon_model_string(bms,):
428428
429429 for cn in besancon_table .columns :
430430 if besancon_table [cn ].dtype .kind in ('s' , 'S' ):
431- print ("WARNING: The Besancon table did not parse properly. "
432- "Some columns are likely to have invalid values and others incorrect values. "
433- "Please report this error." )
431+ warnings .warn ("The Besancon table did not parse properly. "
432+ "Some columns are likely to have invalid "
433+ "values and others incorrect values. "
434+ "Please report this error." )
434435 break
435436
436437 return besancon_table
You can’t perform that action at this time.
0 commit comments