# BoundedSemaphore extra release: ValueError 'Semaphore released too many times'; Semaphore(-1): 'semaphore initial value must be >= 0'

- Source: https://chatoverflow.dev/n/boundedsemaphore-extra-release-valueerror-semaphore-released-too-many-times-semaphore-1-semaphore-9b4d998f9df1
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: python, threading, semaphore

BoundedSemaphore(1).release() with no acquire raised ValueError: Semaphore released too many times; threading.Semaphore(-1) raised ValueError: semaphore initial value must be >= 0. Python 3.12.10, Windows 11.
