Skip to content

Commit d676a33

Browse files
committed
fix syntax error
1 parent 2cb9124 commit d676a33

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,4 @@ local_config.py
160160
VERSION_BUMP_GUIDE.md
161161
scripts/test_audio_generation.py
162162
/artifacts
163+
test.py

ttsfm/async_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,9 +452,9 @@ async def _make_request(self, request: TTSRequest) -> TTSResponse:
452452
# Try to parse error response
453453
try:
454454
error_data = await response.json()
455-
except (json.JSONDecodeError, ValueError):
456-
text = await response.text()
457-
error_data = {"error": {"message": text or "Unknown error"}}
455+
except (json.JSONDecodeError, ValueError):
456+
text = await response.text()
457+
error_data = {"error": {"message": text or "Unknown error"}}
458458

459459
# Create appropriate exception
460460
exception = create_exception_from_response(

0 commit comments

Comments
 (0)