mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
Fix string decode error when importing csv files
This commit is contained in:
parent
5ad8f67f12
commit
baee6916e7
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ class TextImporter(NoteImporter):
|
|||
self.data = [sub(x)+"\n" for x in self.data.split("\n") if sub(x) != "__comment"]
|
||||
if self.data:
|
||||
if self.data[0].startswith("tags:"):
|
||||
tags = str(self.data[0][5:], "utf8").strip()
|
||||
tags = str(self.data[0][5:]).strip()
|
||||
self.tagsToAdd = tags.split(" ")
|
||||
del self.data[0]
|
||||
self.updateDelimiter()
|
||||
|
|
|
|||
Loading…
Reference in a new issue