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()