Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

object NoneType can't be used in 'await' expression #61

Open
sdoo0330 opened this issue May 31, 2023 · 1 comment
Open

object NoneType can't be used in 'await' expression #61

sdoo0330 opened this issue May 31, 2023 · 1 comment

Comments

@sdoo0330
Copy link

image
日本語うまくできないだからちょっと微妙かも。すみません
たまにこの状況出た、修正したいけどできない
object NoneType can't be used in 'await' expression
もしよかったら、修正の方法お願いします、ありがとうございます

@didotb
Copy link
Contributor

didotb commented Jun 3, 2023

This problem is caused by the Google Translator API used in this project, sometimes it can't contact google translate so it fails and gives an empty language which python detects as a type called NoneType.
I'm not sure how this can be fixed aside from using a different API.
You can take a look at other people's forks if someone made a fix of it.

この問題は、このプロジェクトで使用されているGoogle Translator APIが原因で、時々google翻訳に連絡できないので失敗し、pythonがNoneTypeという型として検出する空の言語を提供します。
別のAPIを使う以外の方法でこれを解決する方法はわかりません。
誰かが修正したのであれば、他の人のフォークを参考にすることができます。
-- DeepL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants