Skip to content

Commit 36e04ef

Browse files
Fix for Empty except (#821)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent ab1c20e commit 36e04ef

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

emulator/brainflow_emulator/biolistener_emulator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,10 @@ def run(self):
166166
else:
167167
logging.warning(f"Unknown command: {json_str['command']}")
168168
except TimeoutError:
169+
# Expected when no command arrives before socket timeout; continue polling.
169170
pass
170171
except socket.timeout:
172+
# Expected polling timeout; ignore and keep loop alive.
171173
pass
172174
except Exception as err:
173175
logging.error(f"Error in recv thread: {err}")

0 commit comments

Comments
 (0)