From 6d9299a669f3624d6a36bb43312d628b87eee99a Mon Sep 17 00:00:00 2001 From: rany2 Date: Fri, 17 May 2024 13:03:58 +0300 Subject: [PATCH] Silence sonarlint warning Signed-off-by: rany2 --- src/edge_tts/communicate.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/edge_tts/communicate.py b/src/edge_tts/communicate.py index 0f5975f..d66a109 100644 --- a/src/edge_tts/communicate.py +++ b/src/edge_tts/communicate.py @@ -444,9 +444,7 @@ class Communicate: # Send the next SSML request to the service. if not await send_ssml_request(): break - elif path in (b"response", b"turn.start"): - pass - else: + elif path not in (b"response", b"turn.start"): raise UnknownResponse( "The response from the service is not recognized.\n" + received.data