diff --git a/Bantracker/cgi/bans.cgi b/Bantracker/cgi/bans.cgi index 99a6095..c5d1873 100755 --- a/Bantracker/cgi/bans.cgi +++ b/Bantracker/cgi/bans.cgi @@ -33,7 +33,10 @@ config.set('webpage', 'irc_channel', '#ubuntu-ops') try: config.readfp(open(CONFIG_FILENAME)) except IOError: - config.write(open(CONFIG_FILENAME, 'w')) + try: + config.write(open(CONFIG_FILENAME, 'w')) + except IOError: + pass # This needs to be set to the location of the commoncgi.py file PLUGIN_PATH = config.get('webpage', 'PLUGIN_PATH') @@ -46,7 +49,7 @@ except: print "Content-Type: text/html" print print "

Failed to load the module commoncgi

" - print "

Check that the config option PLUGIN_PATH in '%s' is correct.

" % CONFIG_FILENAME ##< Is this "private" information? + print "

Check that the configured option PLUGIN_PATH is correct.

" sys.exit(-1) db = config.get('webpage', 'database')