fix: tests for end of speech message while mocking pyaudio
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user