From b5d084305bdf60e203571119efd5dde3f83facaa Mon Sep 17 00:00:00 2001 From: Christopher Usher Date: Sun, 10 Nov 2024 20:56:54 -0800 Subject: [PATCH] Another fix --- thrimshim/thrimshim/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thrimshim/thrimshim/main.py b/thrimshim/thrimshim/main.py index ec56412..f57eb6f 100644 --- a/thrimshim/thrimshim/main.py +++ b/thrimshim/thrimshim/main.py @@ -388,7 +388,7 @@ def update_row(ident, editor=None): SELECT description FROM templates WHERE name = %s """, new_row['thumbnail_template']) template = results.fetchone() - if template.description: + if template and template.description: description_lines += [DESCRIPTION_THUMBNAIL_HEADER + template.description] description_lines.append(app.description_footer) new_row['video_description'] += "\n\n" + "\n".join(description_lines)