Skip to content

Commit

Permalink
modified error message when file retrieval does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
gugerlir committed Feb 26, 2024
1 parent aa01ad0 commit 33eafac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rainforest/qpe/qpe.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,8 @@ def fetch_data(self, t0, t1 = None):
self.radar_files[rad] = split_by_time(radfiles)
self.status_files[rad] = split_by_time(statfiles)
except Exception as error:
logger.error('Failed to retrieve data for radar {:s}. Error: {:s}'.format(rad, error))
error_msg = 'Failed to retrieve data for radar {:s}.\n'.format(rad)+ str(error)
logger.error(error_msg)

# Retrieve iso0 height files
if 'ISO0_HEIGHT' in self.cosmo_var:
Expand Down

0 comments on commit 33eafac

Please sign in to comment.