Do not associate tags if bookmark was not imported

This commit is contained in:
Sascha Ißbrücker
2022-07-03 14:44:16 +02:00
parent 90a46c1fb9
commit b618a8b10b
2 changed files with 14 additions and 0 deletions

View File

@@ -173,6 +173,7 @@ def _import_batch(netscape_bookmarks: List[NetscapeBookmark], user: User, tag_ca
shortened_bookmark_tag_str = str(netscape_bookmark)[:100] + '...'
logging.warning(
f'Failed to assign tags to the bookmark: {shortened_bookmark_tag_str}. Could not find bookmark by URL.')
continue
# Get tag models by string, schedule inserts for bookmark -> tag associations
tag_names = parse_tag_string(netscape_bookmark.tag_string)