1
0
mirror of https://github.com/laurivosandi/certidude synced 2025-10-31 01:19:11 +00:00

Tagging fixes

This commit is contained in:
2017-04-13 15:42:38 +00:00
parent 7a7f22c1a1
commit d91e12942d
2 changed files with 6 additions and 2 deletions

View File

@@ -56,7 +56,10 @@ class TagDetailResource(object):
tags = set(getxattr(path, "user.xdg.tags").decode("utf-8").split(","))
except IOError:
tags = set()
tags.remove(tag)
try:
tags.remove(tag)
except KeyError:
pass
if "=" in tag:
tags.add("%s=%s" % (tag.split("=")[0], value))
else: