ecmwf / pdbufr

High-level BUFR interface for ecCodes
Apache License 2.0
23 stars 8 forks source link

Do not fail when key value is not available in BUFR message #47

Closed sandorkertesz closed 1 year ago

sandorkertesz commented 1 year ago

At the moment, if a BUFR key is present but its value cannot be accessed an eccodes.KeyValueNotFoundError exception is thrown and pdbufr fails without giving details about e.g. the key name involved.

Naturally, pdbufr should not fail in this case, but if has to e.g. if it is a mandatory key (e.g. "edition") it should provide the users with a better error message.

Related to issue #46