From 3ee7505aa52f451e95206199e052feb5ace63e45 Mon Sep 17 00:00:00 2001 From: Kumi Date: Wed, 29 Nov 2023 09:02:47 +0100 Subject: [PATCH] Remove debug URL print from weather tool Eliminated a print statement that was outputting the API request URL in the weather fetching tool, ensuring sensitive key information is not displayed in logs. This increases security by preventing potential API key exposure. --- src/gptbot/tools/weather.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gptbot/tools/weather.py b/src/gptbot/tools/weather.py index 52da9e8..30e239e 100644 --- a/src/gptbot/tools/weather.py +++ b/src/gptbot/tools/weather.py @@ -32,7 +32,6 @@ class Weather(BaseTool): raise Exception('Weather API key not found.') url = f'https://api.openweathermap.org/data/3.0/onecall?lat={latitude}&lon={longitude}&appid={weather_api_key}&units=metric' - print(url) async with aiohttp.ClientSession() as session: async with session.get(url) as response: