From a0586f82196d40016517d6b7f899b8ea701bcb97 Mon Sep 17 00:00:00 2001 From: goodboy Date: Tue, 31 Mar 2026 19:43:27 -0400 Subject: [PATCH] Always re-raise in `maybe_spawn_daemon()` handler Move bare `raise` outside the `if lock.owner` guard so the error propagates regardless of whether the stale-lock branch runs. Also add a blank-line separator in the crash log msg. (this commit msg was generated in some part by [`claude-code`][claude-code-gh]) [claude-code-gh]: https://github.com/anthropics/claude-code --- piker/service/_daemon.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/piker/service/_daemon.py b/piker/service/_daemon.py index e03790ae..e6e372df 100644 --- a/piker/service/_daemon.py +++ b/piker/service/_daemon.py @@ -218,11 +218,13 @@ async def maybe_spawn_daemon( lock.statistics().owner is current_task() ): log.exception( - f'Releasing stale lock after crash..?' + f'Releasing stale lock after crash..?\n' + f'\n' f'{err!r}\n' ) lock.release() - raise err + + raise async def spawn_emsd(