Browse Source

Fix crash on editing nodes

Oz N Tiram 7 years ago
parent
commit
fac1436248
1 changed files with 3 additions and 2 deletions
  1. 3 2
      pwman/ui/tools.py

+ 3 - 2
pwman/ui/tools.py

@@ -217,10 +217,11 @@ def set_selection(new_node, items, selection, reader):  # pragma: no cover
         new_node.notes = getinput("Notes :", new_node.notes)
         items[3].getter = new_node.notes
     elif selection == 4:
-        taglist = getinput("Tags:", " ".join(new_node.tags))
+        taglist = getinput(
+            "Tags:", " ".join(t.encode() for t in new_node.tags))
         tags = taglist.split()
         new_node.tags = tags
-        items[4].getter = ','.join(new_node.tags)
+        items[4].getter = ','.join(t.encode() for t in new_node.tags)
 
 
 class CMDLoop(object):