aboutsummaryrefslogtreecommitdiffstats
path: root/blogthon.cgi
diff options
context:
space:
mode:
authorStefan Ritter <xeno@thehappy.de>2012-01-27 18:22:47 +0100
committerStefan Ritter <xeno@thehappy.de>2012-01-27 18:22:47 +0100
commit9017fefc08cd2e686609017643c3b81de769e61c (patch)
tree4f8da048fb1792bd23c3974473fb3a96d3dc9f29 /blogthon.cgi
parentb1adf4b485ff084fad99732bf684f2a2f6e1e4c8 (diff)
Bugfix for tags #3
Diffstat (limited to 'blogthon.cgi')
-rwxr-xr-xblogthon.cgi8
1 files changed, 3 insertions, 5 deletions
diff --git a/blogthon.cgi b/blogthon.cgi
index 39b75e5..30448e7 100755
--- a/blogthon.cgi
+++ b/blogthon.cgi
@@ -152,8 +152,9 @@ if not os.path.exists(plugins_dir):
if not os.path.exists("linklist"):
errorpage("File \"linklist\" does not exist!")
-if not os.path.exists(os.path.join(entries_dir, 'tags')) and tags == "True":
- errorpage("You have to initialize your tags with <i>./blogthon.cgi -t</i> first!")
+if not os.path.exists(os.path.join(entries_dir, 'tags')):
+ tagfile = open(os.path.join(entries_dir, "tags"), "w")
+ tagfile.close()
if language == "de":
blog_locale = (
@@ -239,9 +240,6 @@ 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()