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-codewkt/land_broadcast_consumers
parent
78e7a91a6e
commit
dbcf5228ab
|
|
@ -222,11 +222,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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue