diff --git a/blogthon.cgi b/blogthon.cgi index ce5e5c5..39b75e5 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -239,6 +239,9 @@ if options.tags: for tag in taglist: tagindex.append([tag.strip(), entry]) 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") pickle.dump(tagindex, tagfile) tagfile.close()