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

Error raised when one seeks to bad spot in file and then reads #491

Open
mhvk opened this issue Dec 3, 2021 · 0 comments
Open

Error raised when one seeks to bad spot in file and then reads #491

mhvk opened this issue Dec 3, 2021 · 0 comments
Labels

Comments

@mhvk
Copy link
Owner

mhvk commented Dec 3, 2021

As noted by @00rebe, if one seeks on purpose to a bad spot in the file and then tries reading, one gets

AttributeError: 'Mark5BStreamReader' object has no attribute '_frame'

This is because the bad frame machinery uses a previously existing frame as a template for the invalid frame that it wants to return.

Could be fixed by starting with an empty invalid frame.

@mhvk mhvk added the bug label Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant