From 0547306e573b5eaa1245ef593fd6b459e95ac8fd Mon Sep 17 00:00:00 2001 From: Edward Powell Date: Sun, 1 Sep 2013 16:36:23 -0400 Subject: [PATCH] [rss] Give an error at setup if DB isn't working This will, at the lease, help diagnose #322 --- willie/modules/rss.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/willie/modules/rss.py b/willie/modules/rss.py index d5c6bf6066..6fea9ec4f2 100644 --- a/willie/modules/rss.py +++ b/willie/modules/rss.py @@ -56,6 +56,9 @@ def setup(bot): global SUB SUB = (bot.db.substitution,) + if not bot.db: + raise ConfigurationError("Database not set up, or unavailable.") + conn = bot.db.connect() c = conn.cursor()