Another fix

pull/465/merge
Christopher Usher 3 days ago committed by Mike Lang
parent 13f20ba882
commit b5d084305b

@ -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)

Loading…
Cancel
Save