Fix string decode error when importing csv files
This commit is contained in:
parent
5ad8f67f12
commit
baee6916e7
@ -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 New Issue
Block a user