mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-14 05:36:43 +02:00
Update checking improvements (#38)
Still no auto retry for rate-limit. Instead, rate-limit errors are ignored and the unchecked Apps have to wait until the next cycle. Even this needs more testing before release.
This commit is contained in:
8
lib/custom_errors.dart
Normal file
8
lib/custom_errors.dart
Normal file
@ -0,0 +1,8 @@
|
||||
class RateLimitError {
|
||||
late int remainingMinutes;
|
||||
RateLimitError(this.remainingMinutes);
|
||||
|
||||
@override
|
||||
String toString() =>
|
||||
'Rate limit reached - try again in $remainingMinutes minutes';
|
||||
}
|
Reference in New Issue
Block a user