Skip to content

Commit 8466e58

Browse files
ncwyuval-cloudinary
authored andcommitted
fichier: Fix detection of Flood Detected error
1 parent 21ff765 commit 8466e58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/fichier/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func shouldRetry(ctx context.Context, resp *http.Response, err error) (bool, err
6161
return false, err // No such user
6262
case 186:
6363
return false, err // IP blocked?
64-
case 374:
64+
case 374, 412: // Flood detected seems to be #412 now
6565
fs.Debugf(nil, "Sleeping for 30 seconds due to: %v", err)
6666
time.Sleep(30 * time.Second)
6767
default:

0 commit comments

Comments
 (0)