Added Steam API rate limiter

This commit is contained in:
GeoffreyCoulaud
2023-06-03 18:49:47 +02:00
parent 216c3f5dae
commit 6f77e0d30d
2 changed files with 5 additions and 2 deletions

View File

@@ -63,7 +63,9 @@ class Manager:
# Handle unretryable errors
log_args = (type(error).__name__, self.name, game.name, game.game_id)
if type(error) not in self.retryable_on:
logging.error("Unretryable %s in %s for %s (%s)", *log_args)
logging.error(
"Unretryable %s in %s for %s (%s)", *log_args, exc_info=error
)
self.report_error(error)
break
# Handle being out of retries