From 176391e6698f317f662e4600b2442eb651175094 Mon Sep 17 00:00:00 2001 From: Christopher Usher Date: Sun, 10 Nov 2024 20:52:00 -0800 Subject: [PATCH] More fixes --- thrimshim/thrimshim/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thrimshim/thrimshim/main.py b/thrimshim/thrimshim/main.py index c2c3c56..ec56412 100644 --- a/thrimshim/thrimshim/main.py +++ b/thrimshim/thrimshim/main.py @@ -383,8 +383,8 @@ def update_row(ident, editor=None): for playlist in playlists ] description_lines.append('') # blank line before footer - if new_row['thumbnail_mode'] == 'TEMPLATE': - template = database.query(conn, """ + if new_row['thumbnail_mode'] == 'TEMPLATE' and new_row['thumbnail_template']: + results = database.query(conn, """ SELECT description FROM templates WHERE name = %s """, new_row['thumbnail_template']) template = results.fetchone()