Fix scraper treating NotFoundError as a bug requiring retries

This commit is contained in:
Alessio 2022-02-27 23:35:44 -08:00
parent 5f3013a49b
commit 648098352b

View File

@ -218,7 +218,7 @@ func (api API) GetUser(handle UserHandle) (APIUser, error) {
} }
// Retry ONLY if the error is code 50 (random authentication failure), NOT on real errors // Retry ONLY if the error is code 50 (random authentication failure), NOT on real errors
if len(response.Errors) == 1 && response.Errors[0].Code == 50 { if len(response.Errors) == 1 && response.Errors[0].Code == 50 && response.Errors[0].Name != "NotFoundError" {
// Reset the response (remove the Errors) // Reset the response (remove the Errors)
response = UserResponse{} response = UserResponse{}
continue continue