From 7cefc3a965e702c6715b453a8c3af76c48f53353 Mon Sep 17 00:00:00 2001 From: Razze Date: Sun, 19 May 2024 13:17:19 +0200 Subject: [PATCH] Only reassign release text if we have it --- src/lib/appdata.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/appdata.py b/src/lib/appdata.py index e85fb396..00760884 100644 --- a/src/lib/appdata.py +++ b/src/lib/appdata.py @@ -91,7 +91,8 @@ def add_release( # Indent the opening tag one level # deeper than the tag. - release.text = "\n" + ((releases.text[1::2]) * 3) + if releases.text: + release.text = "\n" + ((releases.text[1::2]) * 3) # Indent the closing tag by the same amount as the opening # tag (which we know to be the first child of since