diff --git a/cfgrib/messages.py b/cfgrib/messages.py index 01cb5d8d..20b54877 100644 --- a/cfgrib/messages.py +++ b/cfgrib/messages.py @@ -246,7 +246,7 @@ def itervalues(self) -> T.Iterator[Message]: LOG.exception("skipping corrupted Message") def __iter__(self) -> T.Iterator[T.Tuple[OffsetType, Message]]: - # assumes MULTI-FIELD support in self.values() + # assumes MULTI-FIELD support in self.itervalues() old_offset = -1 count = 0 for message in self.itervalues():