When using this package in the following asynchronous function (discord.py)
async def update_presence(self) -> None:
cities = ["New York", "Columbus", "Chicago", "Denver", "Los Angeles"]
async with python_weather.Client(unit=python_weather.IMPERIAL) as client:
# Rotate through a list of cities based on the current minute to ensure we get a variety of weather updates
city = cities[discord.utils.utcnow().minute % 5]
# Retrieve weather data
weather = None
try:
weather = await client.get(city)
except python_weather.errors.RequestError as e:
log.exception(e)
return
I only ever receive 200: OK errors which I believe means that the wttr.io response is malformed.
Here's the full traceback:
2026-04-23 04:16:10 | ERROR | CENBot.internal : 200: OK
Traceback (most recent call last):
File "/home/container/cogs/internal.py", line 190, in update_presence
weather = await client.get(city)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/container/.local/lib/python3.14/site-packages/python_weather/client.py", line 140, in get
raise RequestError(status, reason) from None
python_weather.errors.RequestError: 200: OK
When using this package in the following asynchronous function (discord.py)
I only ever receive 200: OK errors which I believe means that the wttr.io response is malformed.
Here's the full traceback:
2026-04-23 04:16:10 | ERROR | CENBot.internal : 200: OK Traceback (most recent call last): File "/home/container/cogs/internal.py", line 190, in update_presence weather = await client.get(city) ^^^^^^^^^^^^^^^^^^^^^^ File "/home/container/.local/lib/python3.14/site-packages/python_weather/client.py", line 140, in get raise RequestError(status, reason) from None python_weather.errors.RequestError: 200: OK