don't panic for failed updates, even in debug (fixes #14)
Syfaro syfaro@foxpaw.in
Sun, 09 Aug 2015 21:12:15 -0500
1 files changed,
3 insertions(+),
7 deletions(-)
jump to
M
updates.go
→
updates.go
@@ -13,13 +13,9 @@ go func() {
for { updates, err := bot.GetUpdates(config) if err != nil { - if bot.Debug { - panic(err) - } else { - log.Println(err) - log.Println("Failed to get updates, retrying in 3 seconds...") - time.Sleep(time.Second * 3) - } + log.Println(err) + log.Println("Failed to get updates, retrying in 3 seconds...") + time.Sleep(time.Second * 3) continue }