aboutsummaryrefslogtreecommitdiffstats
path: root/blogthon.cgi
diff options
context:
space:
mode:
authorStefan Ritter <xeno@thehappy.de>2012-01-27 18:20:06 +0100
committerStefan Ritter <xeno@thehappy.de>2012-01-27 18:20:06 +0100
commitb1adf4b485ff084fad99732bf684f2a2f6e1e4c8 (patch)
tree5569fe2282de42846c0b453bdf8a86ecd562f54e /blogthon.cgi
parent1bd24c2d5beae522f02fcef95973548a843a0431 (diff)
Bugfix for tags #2
Diffstat (limited to '')
-rwxr-xr-xblogthon.cgi3
1 files changed, 3 insertions, 0 deletions
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()