Skip to content

Commit 0b6a016

Browse files
davidgltbsipocz
authored andcommitted
replace print by warnings.warn to show an user warning
1 parent 18d1c44 commit 0b6a016

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

astroquery/esa/hubble/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,8 +1056,8 @@ def get_datalabs_path(self, filename, default_volume=None):
10561056
file_exists = os.path.exists(full_path)
10571057

10581058
if not file_exists:
1059-
print(f"File '{filename}' is not accessible. Please ensure the '{instrument_name}' "
1060-
"volume is mounted in your ESA Datalabs instance.")
1059+
warnings.warn(f"File {filename} is not accessible. Please ensure the {instrument_name} "
1060+
"volume is mounted in your ESA Datalabs instance.")
10611061
return full_path
10621062

10631063

0 commit comments

Comments
 (0)