🎨 Added delay before manager retry

This commit is contained in:
GeoffreyCoulaud
2023-06-05 00:17:41 +02:00
parent 1e4004329c
commit ff0ba00733
2 changed files with 35 additions and 25 deletions

View File

@@ -1,3 +1,5 @@
from urllib3.exceptions import SSLError
from src.game import Game
from src.store.managers.async_manager import AsyncManager
from src.utils.steam import (
@@ -11,7 +13,7 @@ from src.utils.steam import (
class SteamAPIManager(AsyncManager):
"""Manager in charge of completing a game's data from the Steam API"""
retryable_on = set((HTTPError,))
retryable_on = set((HTTPError, SSLError))
def manager_logic(self, game: Game) -> None:
# Skip non-steam games