Skip to content

Commit

Permalink
Update per Kira's recommendation.
Browse files Browse the repository at this point in the history
  • Loading branch information
CodapopKSP committed Jan 2, 2024
1 parent 4c32557 commit 3b0a34c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion async_lemmy_py/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async def get_flair(self) -> Optional[UserFlair]:
async with ClientSession() as session:
params = {"community_actor_id": "https://lemmy.basedcount.com/c/pcm", "user_actor_id": self.actor_id}
async with session.get("https://lemmy.basedcount.com/flair/api/v1/user", params=params) as resp:
if resp.status == 404:
if resp.status != 200:
return None
data = await resp.json()

Expand Down

0 comments on commit 3b0a34c

Please sign in to comment.