From 648afc7df43d14a81a0d664f7babef268d079e90 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 6 Sep 2024 16:20:51 +0100 Subject: [PATCH] fichier: Fix detection of Flood Detected error --- backend/fichier/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/fichier/api.go b/backend/fichier/api.go index 8e1bdbb61..c9c5f8cdd 100644 --- a/backend/fichier/api.go +++ b/backend/fichier/api.go @@ -61,7 +61,7 @@ func shouldRetry(ctx context.Context, resp *http.Response, err error) (bool, err return false, err // No such user case 186: return false, err // IP blocked? - case 374: + case 374, 412: // Flood detected seems to be #412 now fs.Debugf(nil, "Sleeping for 30 seconds due to: %v", err) time.Sleep(30 * time.Second) default: