From 3fbf97639ee8325fbc8b6ff1f64c34c73160223f Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Sat, 10 Nov 2018 14:14:30 +0100 Subject: Properly display 404s. --- bot/cogs/events.py | 3 +-- 1 file changed, 1 insertion(+), 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!=?!??!?!?!?") -- cgit v1.2.3