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:
parent
074ed8fd2f
commit
257c9d446e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user