Improve weather/air error handling, messaging, and endpoint security#501
Open
vantough wants to merge 7 commits intoTeamUltroid:mainfrom
Open
Improve weather/air error handling, messaging, and endpoint security#501vantough wants to merge 7 commits intoTeamUltroid:mainfrom
vantough wants to merge 7 commits intoTeamUltroid:mainfrom
Conversation
Add Redis keepalive task, fix Qovery Redis env parsing, and bump version
…-error-handling-2026-04-05 Improve weather/air error handling, messaging, and endpoint security
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
weatherandaircommands.LOGSwas used but not imported and update package version metadata.Description
https://api.openweathermap.org/data/2.5/air_pollutionand added a client timeout to the request inget_air_pollution_data.get_air_pollution_datato catch timeouts,aiohttp.ClientError, malformed JSON and missing fields, to log details viaLOGS.exception(...)and return concise user-facing error messages (function now returns(data, error)).get_geocode_datahelper that callsgeocode.xyzviaasync_searcherwith defensive handling of timeouts, client errors, invalid JSON and missing keys, returning a structured dict or a short user error.weatherandair, fixed typos such as the Butler/Australia hint and the Nitrogen Monoxide label, and removed inconsistent backticks in user-facing text.LOGSintoplugins/weather.pyto fix the missing-log bug and bumpedpyUltroid/version.pyto__version__ = "2026.04.05"andultroid_version = "2.1.3".Testing
python -m compileall plugins/weather.py pyUltroid/version.pyand the files compiled successfully.LOGSimport) during the changes, and verified the updated modules compile without syntax errors.