Fixing unneeded panic issue!

This commit is contained in:
Chris Sexton 2013-08-26 10:06:14 -04:00
parent ff661b1d27
commit f715ab93e1
1 changed files with 1 additions and 1 deletions

View File

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