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

bpo-31848: Fix broken error handling in Aifc_read.initfp() when the SSND chunk is not found #5240

Merged

Conversation

ZackerySpytz
Copy link
Contributor

@ZackerySpytz ZackerySpytz commented Jan 19, 2018

Initialize self._ssnd_chunk so that aifc.Error is raised as intended,
not AttributeError.

This mirrors what is done in Wave_read.initfp() for self._data_chunk.

https://bugs.python.org/issue31848

…SND chunk is not found

Initialize self._ssnd_chunk so that aifc.Error is raised as intended,
not AttributeError.
@serhiy-storchaka
Copy link
Member

Please add your name in Misc/ACKS and add "Patch by your name." in the news file.

@serhiy-storchaka serhiy-storchaka merged commit 80d20b9 into python:master Feb 20, 2018
@bedevere-bot
Copy link

@serhiy-storchaka: Please replace # with GH- in the commit message next time. Thanks!

@miss-islington
Copy link
Contributor

Thanks @ZackerySpytz for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.6, 3.7.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 20, 2018
…SND chunk is not found (pythonGH-5240)

Initialize self._ssnd_chunk so that aifc.Error is raised as intended,
not AttributeError.
(cherry picked from commit 80d20b9)

Co-authored-by: Zackery Spytz <[email protected]>
@bedevere-bot
Copy link

GH-5780 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 20, 2018
…SND chunk is not found (pythonGH-5240)

Initialize self._ssnd_chunk so that aifc.Error is raised as intended,
not AttributeError.
(cherry picked from commit 80d20b9)

Co-authored-by: Zackery Spytz <[email protected]>
@bedevere-bot
Copy link

GH-5781 is a backport of this pull request to the 2.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 20, 2018
…SND chunk is not found (pythonGH-5240)

Initialize self._ssnd_chunk so that aifc.Error is raised as intended,
not AttributeError.
(cherry picked from commit 80d20b9)

Co-authored-by: Zackery Spytz <[email protected]>
@bedevere-bot
Copy link

GH-5782 is a backport of this pull request to the 3.6 branch.

miss-islington added a commit that referenced this pull request Feb 20, 2018
…SND chunk is not found (GH-5240)

Initialize self._ssnd_chunk so that aifc.Error is raised as intended,
not AttributeError.
(cherry picked from commit 80d20b9)

Co-authored-by: Zackery Spytz <[email protected]>
miss-islington added a commit that referenced this pull request Feb 20, 2018
…SND chunk is not found (GH-5240)

Initialize self._ssnd_chunk so that aifc.Error is raised as intended,
not AttributeError.
(cherry picked from commit 80d20b9)

Co-authored-by: Zackery Spytz <[email protected]>
serhiy-storchaka pushed a commit that referenced this pull request Feb 21, 2018
… the SSND chunk is not found (GH-5240) (GH-5781)

Initialize self._ssnd_chunk so that aifc.Error is raised as intended,
not AttributeError.
(cherry picked from commit 80d20b9)


Co-authored-by: Zackery Spytz <[email protected]>
@ZackerySpytz
Copy link
Contributor Author

Thank you @serhiy-storchaka.

@ZackerySpytz ZackerySpytz deleted the bpo-31848-initialize-ssnd-chunk branch February 27, 2018 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants