fix: tests for end of speech message while mocking pyaudio

This commit is contained in:
makaveli10
2024-02-16 20:31:38 +05:30
parent 78da3f6750
commit b42ced9816
4 changed files with 14 additions and 5 deletions
+3
View File
@@ -207,6 +207,9 @@ class TranscriptionServer:
except json.JSONDecodeError:
logging.error("Failed to decode JSON from client")
return False
except ConnectionClosed:
logging.info("Connection closed by client")
return False
except Exception as e:
logging.error(f"Error during new connection initialization: {str(e)}")
return False