Traceback (most recent call last):
File "/code/books/tests/test_translate.py", line 62, in test_google_translate_api
test_str = Translator().translate("hello", dest="es")
File "/usr/local/lib/python3.8/site-packages/googletrans/client.py", line 182, in translate
data = self._translate(text, dest, src, kwargs)
File "/usr/local/lib/python3.8/site-packages/googletrans/client.py", line 78, in _translate
token = self.token_acquirer.do(text)
File "/usr/local/lib/python3.8/site-packages/googletrans/gtoken.py", line 194, in do
self._update()
File "/usr/local/lib/python3.8/site-packages/googletrans/gtoken.py", line 62, in _update
code = self.RE_TKK.search(r.text).group(1).replace('var ', '')
AttributeError: 'NoneType' object has no attribute 'group'
ERROR: test_google_translate_api (books.tests.test_translate.EbookTranslateTest)
Traceback (most recent call last): File "/code/books/tests/test_translate.py", line 62, in test_google_translate_api test_str = Translator().translate("hello", dest="es") File "/usr/local/lib/python3.8/site-packages/googletrans/client.py", line 182, in translate data = self._translate(text, dest, src, kwargs) File "/usr/local/lib/python3.8/site-packages/googletrans/client.py", line 78, in _translate token = self.token_acquirer.do(text) File "/usr/local/lib/python3.8/site-packages/googletrans/gtoken.py", line 194, in do self._update() File "/usr/local/lib/python3.8/site-packages/googletrans/gtoken.py", line 62, in _update code = self.RE_TKK.search(r.text).group(1).replace('var ', '') AttributeError: 'NoneType' object has no attribute 'group'