Skip to content

Commit

Permalink
fix: Fix resp not raising status code errors
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Feb 29, 2024
1 parent bc94483 commit 3148694
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hoyo_buddy/ui/hoyo/hsr_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ async def _draw_src_character_card(

async with session.post(endpoint, json=payload) as resp:
# API returns a WebP image
resp.raise_for_status()
return BytesIO(await resp.read())

async def _draw_hb_character_card(
Expand Down

0 comments on commit 3148694

Please sign in to comment.