Fixed infentation bug
This commit is contained in:
parent
3724ff485e
commit
5a440d91ab
1 changed files with 0 additions and 1 deletions
|
@ -47,5 +47,4 @@ def translate(text: str, lang: str) -> (str, str):
|
||||||
if not response.ok:
|
if not response.ok:
|
||||||
logging.error(f"Failed to contact Yandex API: {response.status_code}")
|
logging.error(f"Failed to contact Yandex API: {response.status_code}")
|
||||||
return ""
|
return ""
|
||||||
6
|
|
||||||
return (response.json()["text"][0], response.json()["lang"])
|
return (response.json()["text"][0], response.json()["lang"])
|
Loading…
Add table
Add a link
Reference in a new issue