Browse Source

Filed under: shit I wish I could test locally

Kirk Trombley 3 years ago
parent
commit
fb211fcf98
1 changed files with 2 additions and 2 deletions
  1. 2 2
      commands/commands/querying.py

+ 2 - 2
commands/commands/querying.py

@@ -238,10 +238,10 @@ async def imagine(args: Args, api_key: Config("text2img.api_key"), req: Request,
 
 
 @as_command
-async def minecraft(minecraft_url: Config("minecraft.url"), req: Request):
+async def minecraft(minecraft_url: Config("minecraft.url"), req: Request, logger: Logger):
     try:
         async with req.get(minecraft_url) as res:
-            res.raise_forstatus()
+            res.raise_for_status()
             js = await res.json()
             if not js['online']:
                 return "Server is offline!"