diff options
author | Chris Oliver <excid3@gmail.com> | 2010-02-28 15:48:42 -0600 |
---|---|---|
committer | Chris Oliver <excid3@gmail.com> | 2010-02-28 15:48:42 -0600 |
commit | 1a8adb1529c32e9861d2362ede2a220616c36d00 (patch) | |
tree | 0f98445b025a6916b3261dc1656191d07a479e30 /logbot.py | |
parent | bc3c1e7344ac978d5b3dec7fc0c90acc74f8019a (diff) | |
download | logbot-1a8adb1529c32e9861d2362ede2a220616c36d00.tar.xz |
Fixed bug where if logs folder exists and no index.html exists, the bot will crash
Diffstat (limited to 'logbot.py')
-rw-r--r-- | logbot.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -171,6 +171,8 @@ class LogBot(SingleServerIRCBot): if not os.path.exists(self.folder): # Create the log folder if we need to os.mkdir(self.folder) + + if not os.path.exists(index): create_html_file(index, "Logged Channels") append_to_index(index, index_header % "Logged Channels") shutil.copy2(self.stylesheet, self.folder) |