Skip to content

Commit

Permalink
Fix an error when description is discarded
Browse files Browse the repository at this point in the history
Audionut committed Nov 22, 2024
1 parent cf8b842 commit 04d6a5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/prep.py
Original file line number Diff line number Diff line change
@@ -3545,7 +3545,8 @@ def clean_text(text):
content_written = True

if not content_written:
description.write(meta['description'] + "\n")
description_text = meta.get('description', '') or ''
description.write(description_text + "\n")

description.write("\n")
return meta

0 comments on commit 04d6a5e

Please sign in to comment.