From d4d6ac2028e920c65f7b370a4b87de286a1a0f9f Mon Sep 17 00:00:00 2001 From: Andrey Parfenov Date: Sun, 26 Apr 2026 18:47:55 +0700 Subject: [PATCH] Fix for Empty except Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- emulator/brainflow_emulator/biolistener_emulator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/emulator/brainflow_emulator/biolistener_emulator.py b/emulator/brainflow_emulator/biolistener_emulator.py index 310744374..1acbb1c32 100755 --- a/emulator/brainflow_emulator/biolistener_emulator.py +++ b/emulator/brainflow_emulator/biolistener_emulator.py @@ -164,8 +164,10 @@ def run(self): else: logging.warning(f"Unknown command: {json_str['command']}") except TimeoutError: + # Expected when no command arrives before socket timeout; continue polling. pass except socket.timeout: + # Expected polling timeout; ignore and keep loop alive. pass except Exception as err: logging.error(f"Error in recv thread: {err}")