Skip to content

Commit 563fce0

Browse files
author
C. E. Brasseur
authored
Merge pull request #1969 from imbasimba/esasky-error-log-fix
Minor ESASky log fix
2 parents b660d6d + 2c0ef8b commit 563fce0

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

astroquery/esasky/core.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,7 @@ def _get_maps_for_mission(self, maps_table, mission, download_dir, cache, json,
865865
product_url,
866866
directory_path,
867867
cache))
868+
log.info("[Done]")
868869
except HTTPError as err:
869870
log.error("Download failed with {}.".format(err))
870871
if is_spectra:
@@ -900,16 +901,14 @@ def _get_maps_for_mission(self, maps_table, mission, download_dir, cache, json,
900901
fits_file.write(fits_data)
901902
fits_file.flush()
902903
maps.append(fits.open(directory_path + file_name))
904+
log.info("[Done]")
903905
except (HTTPError, ConnectionError) as err:
904906
log.error("Download failed with {}.".format(err))
905907
maps.append(None)
906908

907-
if None in maps:
908-
log.error("Some downloads were unsuccessful, please check "
909-
"the warnings for more details")
910-
911-
else:
912-
log.info("[Done]")
909+
if None in maps:
910+
log.error("Some downloads were unsuccessful, please check "
911+
"the warnings for more details")
913912

914913
log.info("Downloading of {} data complete.".format(mission))
915914

0 commit comments

Comments
 (0)