Skip to content

Commit 2fece66

Browse files
committed
check sid attribute exists first
1 parent 77347f2 commit 2fece66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

climada/hazard/tc_tracks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def get_track(self, track_name=None):
127127
if hasattr(track, 'sid') and track.sid == track_name:
128128
return track
129129

130-
LOGGER.info('No track with name %s found.', track_name)
130+
LOGGER.info('No track with name or sid %s found.', track_name)
131131
return []
132132

133133
def read_ibtracs_netcdf(self, provider='usa', storm_id=None,

0 commit comments

Comments
 (0)