------------------------…

------------------------…



------------------------------------------------------------------------------------------------------------------------
555 process_update dispatcher.py
> handler.handle_update(update, self, check, context)

---

122 handle_update handlers.py
> return self.callback(update, context)

---

74 totranslate gtranslator.py
> trans_str = trl.translate(

---

188 translate google_trans_new.py
> raise e

---

154 translate google_trans_new.py
> response = json.loads(response[0][2])

---

341 loads __init__.py
> raise TypeError(f'the JSON object must be str, bytes or bytearray, '

TypeError:
the JSON object must be str, bytes or bytearray, not NoneType

-------------------------------------------------------------------------------
An exception was raised while handling an update
User: 1973140675
Chat: The secret society . Chat Group -1001744121830
Callback data: None
Message: /tr ja- en

Full Traceback: Traceback (most recent call last):
File "E:\SaitamaRobot\env\lib\site-packages\telegram\ext\dispatcher.py", line 555, in process_update
handler.handle_update(update, self, check, context)
File "E:\SaitamaRobot\SaitamaRobot\modules\helper_funcs\handlers.py", line 122, in handle_update
return self.callback(update, context)
File "E:\SaitamaRobot\SaitamaRobot\modules\gtranslator.py", line 74, in totranslate
trans_str = trl.translate(
File "E:\SaitamaRobot\env\lib\site-packages\google_trans_new\google_trans_new.py", line 188, in translate
raise e
File "E:\SaitamaRobot\env\lib\site-packages\google_trans_new\google_trans_new.py", line 154, in translate
response = json.loads(response[0][2])
File "C:\Program Files\Python38\lib\json\__init__.py", line 341, in loads
raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not NoneType

Report Page