Skip to content

Commit

Permalink
Only reassign release text if we have it
Browse files Browse the repository at this point in the history
  • Loading branch information
razzeee committed May 19, 2024
1 parent efdfa5e commit 7cefc3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/appdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def add_release(

# Indent the opening <description> tag one level
# deeper than the <release> tag.
release.text = "\n" + ((releases.text[1::2]) * 3)
if releases.text:
release.text = "\n" + ((releases.text[1::2]) * 3)

# Indent the closing </release> tag by the same amount as the opening
# <release> tag (which we know to be the first child of <releases> since
Expand Down

0 comments on commit 7cefc3a

Please sign in to comment.