Merge pull request #129 from kra-mo/online-managers-improvements

Retry all online managers on ConnectionError
This commit is contained in:
Geoffrey Coulaud
2023-07-01 18:52:26 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ class OnlineCoverManager(Manager):
"""Manager that downloads game covers from URLs"""
run_after = (LocalCoverManager,)
retryable_on = (HTTPError, SSLError)
retryable_on = (HTTPError, SSLError, ConnectionError)
def save_composited_cover(
self,

View File

@@ -32,7 +32,7 @@ from src.utils.steam import (
class SteamAPIManager(AsyncManager):
"""Manager in charge of completing a game's data from the Steam API"""
retryable_on = (HTTPError, SSLError)
retryable_on = (HTTPError, SSLError, ConnectionError)
steam_api_helper: SteamAPIHelper = None
steam_rate_limiter: SteamRateLimiter = None