From 64c3f217fc21799659b8044f8ed58357cc9f6748 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 --- rss.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rss.py b/rss.py index d5c6bf6066..6fea9ec4f2 100644 --- a/rss.py +++ b/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()