From f715ab93e1b9465adf0e8cb98a7e640ec65816c6 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Mon, 26 Aug 2013 10:06:14 -0400 Subject: [PATCH] Fixing unneeded panic issue! --- plugins/factoid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/factoid.go b/plugins/factoid.go index 6830837..648c2bb 100644 --- a/plugins/factoid.go +++ b/plugins/factoid.go @@ -113,7 +113,7 @@ func (p *FactoidPlugin) findTrigger(message string) (bool, *Factoid) { iter := p.Coll.Find(bson.M{"trigger": strings.ToLower(message)}).Iter() err := iter.All(&results) if err != nil { - panic(err) + return false, nil } nfacts := len(results)