Fixed infentation bug

This commit is contained in:
Robert 2020-01-08 17:56:11 +01:00
parent 3724ff485e
commit 5a440d91ab

View file

@ -47,5 +47,4 @@ def translate(text: str, lang: str) -> (str, str):
if not response.ok:
logging.error(f"Failed to contact Yandex API: {response.status_code}")
return ""
6
return (response.json()["text"][0], response.json()["lang"])