Bugfix for tags #2

This commit is contained in:
Stefan Ritter 2012-01-27 18:20:06 +01:00
parent 1bd24c2d5b
commit b1adf4b485

View File

@ -239,6 +239,9 @@ if options.tags:
for tag in taglist: for tag in taglist:
tagindex.append([tag.strip(), entry]) tagindex.append([tag.strip(), entry])
content.close() content.close()
if not os.path.exist(os.path.join(entries_dir, "tags"), "w"):
tagfile = open(os.path.join(entries_dir, "tags"), "w")
tagfile.close()
tagfile = open(os.path.join(entries_dir, "tags"), "w") tagfile = open(os.path.join(entries_dir, "tags"), "w")
pickle.dump(tagindex, tagfile) pickle.dump(tagindex, tagfile)
tagfile.close() tagfile.close()