Commit d18c216d authored by user's avatar user
Browse files

err

parent 96ea2e38
......@@ -15,8 +15,8 @@ def shout(bot, trigger):
try:
c.execute('''INSERT INTO shouts(created_at,name,message) VALUES(?,?,?)''', (trigger.time, trigger.nick, trigger.group(2) ))
except TypeError:
bot.say("that was not a valid shout")
except:
bot.say("database failed")
try:
mastodon = Mastodon(
......@@ -25,7 +25,7 @@ def shout(bot, trigger):
)
mastodon.toot('Shoutout from ' + trigger.nick +' : ' + trigger.group(2))
except MastodonBadGatewayError:
except:
bot.say("mastodont failed")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment