aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar manusaurio <[email protected]>2019-12-22 03:45:15 -0300
committerGravatar GitHub <[email protected]>2019-12-22 03:45:15 -0300
commit0fa6c443b4554b526fff5f1e80307b615cea900f (patch)
tree082b3893b5985d97f722bc2e9aaa4e422e60cf59
parentCorrect log messages levels, add log messages and ctx.send message (diff)
Add space in condition
Co-Authored-By: Mark <[email protected]>
-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