Skip to content

Commit

Permalink
fix(profile): Handle aiohttp.ClientError in character rank fetching
Browse files Browse the repository at this point in the history
Fixes HOYO-BUDDY-12X
  • Loading branch information
seriaati committed Mar 5, 2025
1 parent 7d0f03d commit 4f961bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hoyo_buddy/ui/hoyo/profile/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ async def _draw_hb_gi_character_card(
if card_settings.show_rank:
try:
rank = await self._get_character_rank(character, with_detail=template_num == 1)
except (akasha.AkashaAPIError, TimeoutError):
except (akasha.AkashaAPIError, TimeoutError, aiohttp.ClientError):
rank = None
except Exception:
logger.exception("Failed to fetch character rank from Akasha API")
Expand Down

0 comments on commit 4f961bd

Please sign in to comment.