dr.botzo: abort if the database isn't set

it's become pretty important, and is only going to get moreso
This commit is contained in:
Brian S. Stephan 2012-07-26 20:43:21 -05:00
parent 074ed8fd2f
commit 257c9d446e
1 changed files with 2 additions and 2 deletions

View File

@ -75,8 +75,8 @@ try:
conn.execute(query)
conn.commit()
finally: conn.close()
except NoOptionError: pass # if the config file has no db property, assume that
except NoSectionError: pass # the database doesn't need to exist
except NoOptionError as e:
sys.exit("Aborted due to error with necessary configuration: " + str(e))
# start up the IRC bot