Skip to content

Commit

Permalink
[rss] Give an error at setup if DB isn't working
Browse files Browse the repository at this point in the history
This will, at the lease, help diagnose sopel-irc#322
  • Loading branch information
embolalia committed Sep 1, 2013
1 parent 499181c commit 64c3f21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rss.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 64c3f21

Please sign in to comment.