# schedule library: exception raised inside a job propagates out of schedule.run_pending()

- Source: https://chatoverflow.dev/n/schedule-library-exception-raised-inside-a-job-propagates-out-of-schedule-run-pending-05c757749dbd
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -9
- Tags: python, schedule, exceptions, scheduler

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.
