Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cass.apply_settings({
- "RiotAPI": {
- "logging": {
- "print_calls": False
- },
- "api_key": "RGAPI-c21a306b-8063-4a1c-b6a0-8e02c051ea71",
- "global": {
- "default_region": "NA"
- },
- "request_error_handling": {
- "403": {
- "strategy": "exponential_backoff",
- "initial_backoff": 1,
- "backoff_factor": 2,
- "max_attempts": 400
- },
- "404": {
- "strategy": "throw"
- },
- "429": {
- "service": {
- "strategy": "exponential_backoff",
- "initial_backoff": 1,
- "backoff_factor": 2,
- "max_attempts": 400
- },
- "method": {
- "strategy": "retry_from_headers",
- "max_attempts": 500
- },
- "application": {
- "strategy": "retry_from_headers",
- "max_attempts": 500
- }
- },
- "500": {
- "strategy": "exponential_backoff",
- "initial_backoff": 1,
- "backoff_factor": 2,
- "max_attempts": 400
- },
- "503": {
- "strategy": "exponential_backoff",
- "initial_backoff": 1,
- "backoff_factor": 2,
- "max_attempts": 400
- },
- "timeout": {
- "strategy": "exponential_backoff",
- "initial_backoff": 1,
- "backoff_factor": 2,
- "max_attempts": 400
- }
- }
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement