Skip to content

Commit 0ccd5f3

Browse files
committed
updated warning message
1 parent 4595daa commit 0ccd5f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

astroquery/utils/tap/taputils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def get_suitable_output_file_name_for_current_output_format(output_file, output_
266266
if output_format in format_with_results_compressed:
267267
# In this case we will have to take also into account the .fits format
268268
if not output_file.endswith(compressed_extension):
269-
warnings.warn('WARNING!!! By default, results in "votable" and "fits" format are returned in '
269+
warnings.warn('By default, results in "votable", "ecsv" and "fits" format are returned in '
270270
f'compressed format therefore your file {output_file} '
271271
f'will be renamed to {output_file}.gz')
272272
if output_format == 'votable':
@@ -287,6 +287,6 @@ def get_suitable_output_file_name_for_current_output_format(output_file, output_
287287
# the output type is not compressed by default by the TAP SERVER but the users gives a .gz extension
288288
elif output_file.endswith(compressed_extension):
289289
output_file_renamed = output_file.removesuffix('.gz')
290-
warnings.warn(f'WARNING!!! The output format selected is not compatible with compression. {output_file}'
290+
warnings.warn(f'The output format selected is not compatible with compression. {output_file}'
291291
f' will be renamed to {output_file}')
292292
return output_file_with_extension

0 commit comments

Comments
 (0)