]> granicus.if.org Git - python/commit
bpo-31848: Fix broken error handling in Aifc_read.initfp() when the SSND chunk is...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 20 Feb 2018 22:06:58 +0000 (14:06 -0800)
committerGitHub <noreply@github.com>
Tue, 20 Feb 2018 22:06:58 +0000 (14:06 -0800)
commit1d927d4feba856cacc026a9167ba38c73a4e7657
tree982f58f7aed1477ecff827a89660734787e2838f
parentbab4fe320ad2e24c1084fd57d2059ef342688aa9
bpo-31848: Fix broken error handling in Aifc_read.initfp() when the SSND chunk is not found (GH-5240)

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

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Lib/aifc.py
Lib/test/test_aifc.py
Misc/ACKS
Misc/NEWS.d/next/Library/2018-01-18-23-34-17.bpo-31848.M2cldy.rst [new file with mode: 0644]