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

Rescue IndexError in first? and move on to next segment #864

Merged
merged 3 commits into from
Dec 4, 2024

Conversation

viktorerlingsson
Copy link
Member

WHAT is this pull request doing?

If a msg file is a few bytes larger than expected, first? will throw an IndexError and close the queue. This changes that behavior to instead rescue that IndexError and try to move on to the next segment file. Same fix as for shift? in #671

fixes #669 (again 🙂)

HOW can this pull request be tested?

Run spec

@viktorerlingsson viktorerlingsson requested a review from a team as a code owner December 3, 2024 09:50
@viktorerlingsson viktorerlingsson merged commit d4db0f5 into main Dec 4, 2024
8 of 19 checks passed
@viktorerlingsson viktorerlingsson deleted the 669-IndexError-in-first branch December 4, 2024 12:54
kickster97 pushed a commit that referenced this pull request Dec 16, 2024
If a msg file is a few bytes larger than expected, first? will throw an IndexError and close the queue. This changes that behavior to instead rescue that IndexError and try to move on to the next segment file. Same fix as for shift? in #671

fixes #669 (again 🙂)
kickster97 pushed a commit that referenced this pull request Dec 18, 2024
If a msg file is a few bytes larger than expected, first? will throw an IndexError and close the queue. This changes that behavior to instead rescue that IndexError and try to move on to the next segment file. Same fix as for shift? in #671

fixes #669 (again 🙂)
spuun pushed a commit that referenced this pull request Dec 23, 2024
If a msg file is a few bytes larger than expected, first? will throw an IndexError and close the queue. This changes that behavior to instead rescue that IndexError and try to move on to the next segment file. Same fix as for shift? in #671

fixes #669 (again 🙂)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some of the queues are closed
2 participants