mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-08 17:49:35 +00:00
potential fix of exception printing on skipping of timeout exceptions
This commit is contained in:
@@ -14,7 +14,6 @@ object ExceptionsOnlyLimiter : RequestLimiter {
|
|||||||
result = runCatchingSafely {
|
result = runCatchingSafely {
|
||||||
block()
|
block()
|
||||||
}.onFailure {
|
}.onFailure {
|
||||||
it.printStackTrace()
|
|
||||||
if (it is TooMuchRequestsException) {
|
if (it is TooMuchRequestsException) {
|
||||||
delay(it.retryAfter.leftToRetry)
|
delay(it.retryAfter.leftToRetry)
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user