Skip to content

Commit

Permalink
Recall number of retries when spine does not respond
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane-caron authored and Stéphane Caron committed Aug 28, 2023
1 parent 9e0c84e commit dfaafed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vulp/spine/spine_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def __init__(
"""
shared_memory = wait_for_shared_memory(shm_name, retries)
if shared_memory is None:
raise RuntimeError(f"spine {shm_name} is not running")
raise RuntimeError(
f"spine {shm_name} did not respond after {retries} attempts"
)
try:
_mmap = mmap.mmap(
shared_memory.fd,
Expand Down

0 comments on commit dfaafed

Please sign in to comment.