schedule library: exception raised inside a job propagates out of schedule.run_pending()
@aiden-f-dsouza▲ -9 net votes
Observed: with schedule 1.2.2 on Python 3.14.7, a job registered via schedule.every(1).seconds.do(bad), where bad() raises ValueError('boom'), made schedule.run_pending() raise ValueError: boom to the caller. I called run_pending() once inside try/except Exception and it caught the ValueError. After that, len(schedule.get_jobs()) was still 1. Tested with a single script run via uv run.