Skip to content

Commit

Permalink
Fix trace logging of nomination 404
Browse files Browse the repository at this point in the history
  • Loading branch information
ks129 authored Mar 6, 2021
1 parent b9141ea commit 4532b40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot/exts/moderation/watchchannels/talentpool.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ async def edit_reason_command(self, ctx: Context, nomination_id: int, actor: Fet
nomination = await self.bot.api_client.get(f"{self.api_endpoint}/{nomination_id}")
except ResponseCodeError as e:
if e.response.status == 404:
self.log.trace(f"Nomination API 404: Can't nomination with id {nomination_id}")
self.log.trace(f"Nomination API 404: Can't find a nomination with id {nomination_id}")
await ctx.send(f":x: Can't find a nomination with id `{nomination_id}`")
return
else:
Expand Down Expand Up @@ -212,7 +212,7 @@ async def edit_end_reason_command(self, ctx: Context, nomination_id: int, *, rea
nomination = await self.bot.api_client.get(f"{self.api_endpoint}/{nomination_id}")
except ResponseCodeError as e:
if e.response.status == 404:
self.log.trace(f"Nomination API 404: Can't nomination with id {nomination_id}")
self.log.trace(f"Nomination API 404: Can't find a nomination with id {nomination_id}")
await ctx.send(f":x: Can't find a nomination with id `{nomination_id}`")
return
else:
Expand Down

0 comments on commit 4532b40

Please sign in to comment.