From 45775c607c61416a3e6c06a4dc79740626e333d2 Mon Sep 17 00:00:00 2001 From: Angel Rey Date: Mon, 21 Sep 2020 14:29:45 -0500 Subject: [PATCH] Fixed empty tags --- archivebox/index/sql.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/archivebox/index/sql.py b/archivebox/index/sql.py index bd3664da..360a7309 100644 --- a/archivebox/index/sql.py +++ b/archivebox/index/sql.py @@ -72,7 +72,9 @@ def write_sql_link_details(link: Link, out_dir: Path=OUTPUT_DIR) -> None: tag_list = list(tag_set) or [] for tag in tag_list: - snap.tags.add(tag) + # TODO check empty tags + if snap.tags: + snap.tags.add(tag) snap.save()