🚧 More work on resilient managers

This commit is contained in:
GeoffreyCoulaud
2023-05-31 16:54:51 +02:00
parent 0b188136a2
commit d204737339
8 changed files with 40 additions and 30 deletions

View File

@@ -12,11 +12,11 @@ class SGDBManager(AsyncManager):
run_after = set((SteamAPIManager,))
retryable_on = set((HTTPError,))
def final_run(self, game: Game) -> None:
def manager_logic(self, game: Game) -> None:
try:
sgdb = SGDBHelper()
sgdb.conditionaly_update_cover(game)
except SGDBAuthError as error:
except SGDBAuthError:
# If invalid auth, cancel all SGDBManager tasks
self.cancellable.cancel()
self.report_error(error)
raise