mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 00:27:41 +01:00
await res.json in ssfr inside catch block
This commit is contained in:
@@ -111,6 +111,7 @@ class ScreenScraperService:
|
||||
status_code=status.HTTP_401_UNAUTHORIZED,
|
||||
detail="Invalid ScreenScraper credentials",
|
||||
)
|
||||
return await res.json()
|
||||
except (aiohttp.ClientResponseError, aiohttp.ServerTimeoutError) as err:
|
||||
if (
|
||||
isinstance(err, aiohttp.ClientResponseError)
|
||||
@@ -124,8 +125,6 @@ class ScreenScraperService:
|
||||
log.error("Error decoding JSON response from ScreenScraper: %s", exc)
|
||||
return {}
|
||||
|
||||
return await res.json()
|
||||
|
||||
async def get_game_info(
|
||||
self,
|
||||
*,
|
||||
|
||||
Reference in New Issue
Block a user