mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-07 23:01:06 +02:00
Stopping the event loop cancels the printer callbacks still pending. _schedule_async's done-callback then called result(), which raises concurrent.futures.CancelledError. Unlike asyncio's, that one is an Exception, so it was logged as "Exception in scheduled callback" with a traceback. Two support packages show it as the last line before a restart. Return early on a cancelled future, as core/tasks.py already does. A callback that raised is still logged as an error.