Only continue if there are labels to store

main
bashrc 2026-08-22 18:16:55 +01:00
parent c58b7b16f4
commit 686c76f020
1 changed files with 2 additions and 0 deletions

View File

@ -431,6 +431,8 @@ def store_content_labels(base_dir: str, nickname: str, domain: str,
relevant label files.
"""
labels_list: list[str] = get_labels_from_json(post_json_object)
if not labels_list:
return
labels_dir = base_dir + '/labels'