]> 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:17:30 +0000 (14:17 -0800)
committerGitHub <noreply@github.com>
Tue, 20 Feb 2018 22:17:30 +0000 (14:17 -0800)
commit2b9726eb647e856d83eafdc30cdbbc31a5920ab6
treedae79987334c78d111eb1b5f14daf03095bcc387
parent6ae87cae091f4835090c10c1e65eb057a13fca2c
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]