mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-24 19:46:15 +01:00
Trial treating 403 Forbidden as too many requests
This commit is contained in:
parent
695baf4481
commit
817df76468
@ -248,8 +248,8 @@ class ProfileFetchThread implements Runnable {
|
||||
String message = e.getMessage();
|
||||
String cause = e.getCause() != null ? e.getCause().getMessage() : null;
|
||||
|
||||
return message != null && message.contains("too many requests")
|
||||
|| cause != null && cause.contains("too many requests");
|
||||
return message != null && (message.contains("403 Forbidden") || message.contains("too many requests"))
|
||||
|| cause != null && (cause.contains("403 Forbidden") || cause.contains("too many requests"));
|
||||
}
|
||||
|
||||
private static void sendResult(ProfileFetchHandler handler, ProfileRequest request) {
|
||||
|
Loading…
Reference in New Issue
Block a user