From 8993d4edd2c318ba8c8e916cea7db79df857874e Mon Sep 17 00:00:00 2001 From: crate Date: Sun, 8 Jun 2025 20:31:21 -0500 Subject: [PATCH] fix exception handling on weather.py so it doesn't publicly send out my api token every time something bad happens --- garfpy/weather.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/garfpy/weather.py b/garfpy/weather.py index cd9d0df..3bbe16f 100644 --- a/garfpy/weather.py +++ b/garfpy/weather.py @@ -126,8 +126,8 @@ class WeatherAPI: response.raise_for_status() return await response.json() except aiohttp.ClientError as e: - logger.error(f"Error fetching weather data for '{location}': {e}") - await ctx.send(f"`Error fetching weather data for '{location}': {e}`") + logger.error(f"Error fetching weather data for '{location}'") + await ctx.send(f"`Error fetching weather data for '{location}'`") return None def weather_embed(self, weather_data):