Skip to content

Commit 7494746

Browse files
Jorge Fernandez Hernandezbsipocz
authored andcommitted
EUCLIDPCR-1914 Change the kind of exception to IOError
1 parent b08025e commit 7494746

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

astroquery/esa/euclid/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ def get_spectrum(self, *, source_id, schema='sedm', retrieval_type="ALL", output
12311231
output_file_full_path, output_dir = self.__set_dirs(output_file=output_file, observation_id=fits_file)
12321232

12331233
if os.listdir(output_dir):
1234-
raise Exception(f'The directory is not empty: {output_dir}')
1234+
raise IOError(f'The directory is not empty: {output_dir}')
12351235

12361236
try:
12371237
self.__eucliddata.load_data(params_dict=params_dict, output_file=output_file_full_path, verbose=verbose)

0 commit comments

Comments
 (0)