Skip to content

Releases: tklecka/pygeosphere-warnings

v0.1.2

Choose a tag to compare

@tklecka tklecka released this 06 Aug 13:31
726f3b9

What's Changed

  • fixed error in get_thunderstorms: gemeinde -> gemeindenr by @a7rk in #2
  • chore: fix .gitignore newline and README formatting by @tklecka in #3
  • chore: bump version to 0.1.2 by @tklecka in #4

New Contributors

  • @a7rk made their first contribution in #2

Full Changelog: v0.1.1...v0.1.2

v0.1.1

Choose a tag to compare

@tklecka tklecka released this 23 Jul 12:48
ce62fc7

Fixed

aiohttp responses are now released on every error path.

_request handed back a bare ClientResponse, so an early raise — the 404 in get_warnings_for_coords, the status check in _parse_json — left the response unreleased. aiohttp only returns a connection to the pool by itself once the payload reaches EOF, so an error raised while the body is still in flight held the connector slot for as long as the caller kept the exception, whose traceback pins the response. A Home Assistant coordinator storing last_exception does exactly that, and enough failing entries could exhaust a shared session's connection pool.

_request is now an async context manager that wraps the response in async with, releasing it on every exit path including caller exceptions. Transport error handling stays outside the yield, so caller exceptions are not relabelled as GeoSphereConnectionError.

No API changes. _request is private; get_last_modified, get_warnings_for_coords and get_thunderstorms keep their signatures and exception behaviour.

Full changelog: v0.1.0...v0.1.1

v0.1.0

Choose a tag to compare

@tklecka tklecka released this 11 Jun 17:47