aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Manuel Ignacio Pérez Alcolea <[email protected]>2019-12-22 03:54:22 -0300
committerGravatar Manuel Ignacio Pérez Alcolea <[email protected]>2019-12-22 03:54:22 -0300
commit5f58979a67d5d85f444100f5b8d1e31f234f6cef (patch)
tree112238a3b755dce4f3f129d56315798b6580810f
parentAdd descriptive message to exception if user from API doesn't exist (diff)
parentAdd space in condition (diff)
Merge branch 'fetched-user' of https://github.com/manusaurio/bot into fetched-user
Diffstat (limited to '')
-rw-r--r--bot/cogs/moderation/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/moderation/utils.py b/bot/cogs/moderation/utils.py
index 8328e4c85..d0eaba7c8 100644
--- a/bot/cogs/moderation/utils.py
+++ b/bot/cogs/moderation/utils.py
@@ -91,7 +91,7 @@ async def post_infraction(
response = await ctx.bot.api_client.post('bot/infractions', json=payload)
return response
except ResponseCodeError as exp:
- if exp.status == 400 and 'user'in exp.response_json:
+ if exp.status == 400 and 'user' in exp.response_json:
# Only one attempt to add the user to the database, not two:
if not should_post_user or await post_user(ctx, user) is None:
return