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.execute(query)
|
||||||
conn.commit()
|
conn.commit()
|
||||||
finally: conn.close()
|
finally: conn.close()
|
||||||
except NoOptionError: pass # if the config file has no db property, assume that
|
except NoOptionError as e:
|
||||||
except NoSectionError: pass # the database doesn't need to exist
|
sys.exit("Aborted due to error with necessary configuration: " + str(e))
|
||||||
|
|
||||||
# start up the IRC bot
|
# start up the IRC bot
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user