Commit 5c7c23f
committed
generate_rss: make pep_abstract more robust
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.
Signed-off-by: William Woodruff <[email protected]>1 parent 56768d6 commit 5c7c23f
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | | - | |
| 64 | + | |
64 | 65 | | |
65 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
| |||
0 commit comments