diff --git a/magic/fetcher.py b/magic/fetcher.py index 9ce06fe6d..2cd56abeb 100644 --- a/magic/fetcher.py +++ b/magic/fetcher.py @@ -162,8 +162,8 @@ async def legal_cards_async(season: Optional[str] = None) -> List[str]: async def mtgo_status() -> str: try: - json = await fetch_tools.fetch_json_async('https://census.daybreakgames.com/s:example/get/global/game_server_status?game_code=mtgo&c:limit=1000') - last_reported_state = json['game_server_status_list'][0]['last_reported_state'] + data = await fetch_tools.fetch_json_async('https://census.daybreakgames.com/s:example/get/global/game_server_status?game_code=mtgo&c:limit=1000') + last_reported_state = data['game_server_status_list'][0]['last_reported_state'] return 'UP' if last_reported_state in ['high', 'medium', 'low'] else last_reported_state except (FetchException, json.decoder.JSONDecodeError): return 'UNKNOWN'