From 2d40baa95f66b15e8f2536e0018a47e31c4f75c9 Mon Sep 17 00:00:00 2001 From: luoliyan Date: Tue, 21 Feb 2017 17:37:01 +0930 Subject: [PATCH] Don't register non-existent tags --- anki/tags.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/anki/tags.py b/anki/tags.py index 306f182de..33d6422fd 100644 --- a/anki/tags.py +++ b/anki/tags.py @@ -89,7 +89,8 @@ class TagManager: if not newTags: return # cache tag names - self.register(newTags) + if add: + self.register(newTags) # find notes missing the tags if add: l = "tags not "