diff options
| author | 2018-11-10 14:14:30 +0100 | |
|---|---|---|
| committer | 2018-11-10 14:14:30 +0100 | |
| commit | 3fbf97639ee8325fbc8b6ff1f64c34c73160223f (patch) | |
| tree | 2afbd4510a55c73f888a9bed597d7a30ee7cdfc8 | |
| parent | Return `None` on `delete` status 204. (diff) | |
Properly display 404s.
| -rw-r--r-- | bot/cogs/events.py | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/bot/cogs/events.py b/bot/cogs/events.py index 281e212ff..9a0b0b106 100644 --- a/bot/cogs/events.py +++ b/bot/cogs/events.py @@ -136,8 +136,7 @@ class Events:              )          elif isinstance(e, CommandInvokeError):              if isinstance(e.original, ClientResponseError): -                return await ctx.send("There was some response error but I can't put my finger on what exactly.") -                if e.original.status == 404: +                if e.original.code == 404:                      await ctx.send("There does not seem to be anything matching your query.")                  else:                      await ctx.send("BEEP BEEP UNKNOWN API ERROR!=?!??!?!?!?") | 
