Skip to content

Commit c1bc442

Browse files
committed
SSD-751 Sparky: Exception deserializing response! - On the Google Cloud Language API
1 parent c876ee5 commit c1bc442

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

daaily/score/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ def re_encode(self, text: str) -> str:
7373
Returns:
7474
str: The re-encoded text.
7575
"""
76-
bio = io.BytesIO(text.encode("utf-8"))
77-
text_io = io.TextIOWrapper(bio, encoding="utf-8-sig")
76+
bytes_object = io.BytesIO(text.encode("utf-8"))
77+
text_io = io.TextIOWrapper(bytes_object, encoding="utf-8-sig")
7878
return text_io.read().strip()
7979

8080
def _grammar_check(self, text: str) -> tuple[float, list[str]]:

0 commit comments

Comments
 (0)