diff options
| author | 2020-07-29 14:17:44 +0200 | |
|---|---|---|
| committer | 2020-07-29 14:17:44 +0200 | |
| commit | 1b6be865eddeab9199177d74ec07f8cd22051ca4 (patch) | |
| tree | 3a014f04a3173f8106c916049d89e3966f80a1b9 | |
| parent | Bump flake8 version to 3.8 (diff) | |
Expect status 400 for duplicates.
| -rw-r--r-- | bot/cogs/filter_lists.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/filter_lists.py b/bot/cogs/filter_lists.py index d1db9830e..9bd2da330 100644 --- a/bot/cogs/filter_lists.py +++ b/bot/cogs/filter_lists.py @@ -64,10 +64,10 @@ class FilterLists(Cog): json=payload ) except ResponseCodeError as e: - if e.status == 500: + if e.status == 400: await ctx.message.add_reaction("❌") log.debug( - f"{ctx.author} tried to add data to a {allow_type}, but the API returned 500, " + f"{ctx.author} tried to add data to a {allow_type}, but the API returned 400, " "probably because the request violated the UniqueConstraint." ) raise BadArgument( |