2020-04-25 08:46:40 +03:00
|
|
|
7.1.2
|
|
|
|
-----
|
|
|
|
|
|
|
|
Fix another regression seeking PNG files
|
2024-03-15 03:21:00 +03:00
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-04-25 08:46:40 +03:00
|
|
|
|
|
|
|
This fixes a regression introduced in 7.1.0 when adding support for APNG files.
|
|
|
|
|
|
|
|
When calling ``seek(n)`` on a regular PNG where ``n > 0``, it failed to raise an
|
2023-11-01 21:18:25 +03:00
|
|
|
:py:exc:`EOFError` as it should have done, resulting in:
|
2020-04-25 08:46:40 +03:00
|
|
|
|
2020-12-20 04:55:54 +03:00
|
|
|
.. code-block:: pycon
|
2020-04-25 08:46:40 +03:00
|
|
|
|
|
|
|
AttributeError: 'NoneType' object has no attribute 'read'
|
|
|
|
|
|
|
|
Pillow 7.1.2 now raises the correct exception.
|