Skip to content

Commit 5351441

Browse files
Adding continue to rety the loop when getting 504 (#23)
1 parent 1ecdcc1 commit 5351441

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

standup/standup.go

+5
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ func AskStandupYesterday(s *common.Slack, ev *slack.MessageEvent) error {
8080
log.WithFields(log.Fields{
8181
"timestamp": timestamp,
8282
}).WithError(err).Error("Could not get the IM history of the message")
83+
continue
8384
}
8485
log.WithFields(log.Fields{
8586
"timestamp": timestamp,
@@ -185,6 +186,7 @@ loop:
185186
log.WithFields(log.Fields{
186187
"timestamp": timestamp,
187188
}).WithError(err).Error("Could not get the IM history of the message")
189+
continue
188190
}
189191
log.WithFields(log.Fields{
190192
"timestamp": timestamp,
@@ -300,6 +302,7 @@ loop:
300302
log.WithFields(log.Fields{
301303
"timestamp": timestamp,
302304
}).WithError(err).Error("Could not get the IM history of the message")
305+
continue
303306
}
304307
log.WithFields(log.Fields{
305308
"timestamp": timestamp,
@@ -418,10 +421,12 @@ loop:
418421
log.WithFields(log.Fields{
419422
"timestamp": timestamp,
420423
}).WithError(err).Error("Could not get the IM history of the message")
424+
continue
421425
}
422426
log.WithFields(log.Fields{
423427
"timestamp": timestamp,
424428
}).Debug("Getting IM history of the message")
429+
425430
message := history.Messages
426431

427432
if len(message) == 0 {

0 commit comments

Comments
 (0)