Skip to content

Commit

Permalink
climada_petal.hazard.tc_tracks_forecast: fix error message in fetch_b…
Browse files Browse the repository at this point in the history
…ufr_ftp
  • Loading branch information
emanuel-schmid committed Sep 27, 2024
1 parent 83482af commit 1963a9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions climada_petals/hazard/tc_tracks_forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,9 @@ def fetch_bufr_ftp(target_dir=None, remote_dir=None):
remotefiles = fnmatch.filter(remotefiles_temp, '*ECEP*')

if len(remotefiles) == 0:
msg = 'No tracks found at ftp://{}/{}'
msg.format(ECMWF_FTP.host.dir(), remote_dir)
raise FileNotFoundError(msg)
raise FileNotFoundError(

Check warning on line 213 in climada_petals/hazard/tc_tracks_forecast.py

View check run for this annotation

Jenkins - WCR / Code Coverage

Not covered line

Line 213 is not covered by tests
f'No tracks found at ftp://{ECMWF_FTP.host.str()}/{remote_dir}'
)

localfiles = []

Expand Down

0 comments on commit 1963a9c

Please sign in to comment.