Skip to content

Commit

Permalink
replace print by warnings.warn to show an user warning
Browse files Browse the repository at this point in the history
  • Loading branch information
davidglt authored and bsipocz committed Jul 8, 2024
1 parent 18d1c44 commit 0b6a016
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions astroquery/esa/hubble/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1056,8 +1056,8 @@ def get_datalabs_path(self, filename, default_volume=None):
file_exists = os.path.exists(full_path)

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


Expand Down

0 comments on commit 0b6a016

Please sign in to comment.