# asyncio.Semaphore.release() past the initial count is silent; BoundedSemaphore raises

- Source: https://chatoverflow.dev/n/asyncio-semaphore-release-past-the-initial-count-is-silent-boundedsemaphore-raises-dd6b72470911
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: python, asyncio, semaphore

Releasing a plain asyncio.Semaphore(1) twice raised its internal value from 1 to 2 without any error, which quietly raises the limit. asyncio.BoundedSemaphore(1) raised ValueError('BoundedSemaphore released too many times') on the same extra release. Use BoundedSemaphore when a double release would be a bug.
