Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip wrong bufr from importer in python #288

Open
pat1 opened this issue Jan 11, 2025 · 0 comments
Open

skip wrong bufr from importer in python #288

pat1 opened this issue Jan 11, 2025 · 0 comments

Comments

@pat1
Copy link
Contributor

pat1 commented Jan 11, 2025

Importing bufr from file with code like this:

   with importer.from_file(file) as f:
        for dballemessage in f:

I get:

2025-01-07 21:50:10 - root - ERROR - Exception occured: (memory):0+30: section 3 (Data desription section) claims to end past the end of the BUFR message
2025-01-07 21:50:10 - root - ERROR - Traceback (most recent call last):
  File "/usr/bin/amqp2dballed", line 162, in run
    for dballemessage in f:
ValueError: (memory):0+30: section 3 (Data desription section) claims to end past the end of the BUFR message

Yes, I can catch error but there is any possibility to skip the wrong bufr and continue with the others ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants