Skip to content

Conversation

@woodruffw
Copy link
Contributor

@woodruffw woodruffw commented Apr 8, 2025

This eliminates an AttributeError during PEP editing, if the PEP being edited has an Abstract or Introduction section but with no interior content (i.e. paragraphs) yet.

In practice this should have no effect on actual
RSS feeds, since merged PEPs should always have a proper abstract. However, this prevents a confusing error from bubbling up during local editing.

See #4355.


📚 Documentation preview 📚: https://pep-previews--4356.org.readthedocs.build/

This eliminates an AttributeError during PEP editing,
if the PEP being edited has an Abstract or Introduction
section but with no interior content (i.e. paragraphs)
yet.

In practice this should have no effect on actual
RSS feeds, since merged PEPs should always have a proper
abstract. However, this prevents a confusing error
from bubbling up during local editing.

See python#4355.

Signed-off-by: William Woodruff <william@yossarian.net>
@woodruffw woodruffw requested a review from AA-Turner as a code owner April 8, 2025 19:48
@AA-Turner AA-Turner self-assigned this Apr 8, 2025
@AA-Turner AA-Turner added the infra Core infrastructure for building and rendering PEPs label Apr 11, 2025
@AA-Turner AA-Turner changed the title generate_rss: make pep_abstract more robust Infra: Make PEP abstract extration more robust Apr 11, 2025
Signed-off-by: William Woodruff <william@yossarian.net>
@woodruffw woodruffw force-pushed the ww/fix-pep-abstract branch from 4ee0594 to 5836a73 Compare April 11, 2025 21:17
@AA-Turner AA-Turner merged commit 7a093da into python:main Apr 11, 2025
22 checks passed
@woodruffw woodruffw deleted the ww/fix-pep-abstract branch April 11, 2025 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infra Core infrastructure for building and rendering PEPs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants