From b1adf4b485ff084fad99732bf684f2a2f6e1e4c8 Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Fri, 27 Jan 2012 18:20:06 +0100 Subject: Bugfix for tags #2 --- blogthon.cgi | 3 +++ 1 file changed, 3 insertions(+) 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() -- cgit v1.2.3