------------------------…
------------------------------------------------------------------------------------------------------------------------
555 process_update dispatcher.py
> handler.handle_update(update, self, check, context)
---
122 handle_update handlers.py
> return self.callback(update, context)
---
68 totranslate gtranslator.py
> trans_str = trl.translate(text, lang_tgt=dest_lang)
---
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: 1138170511
Chat: 0̴̖͎͓͛̏̎̓̐̓͑͗1̵̧̛̫̗̖̘̣͋̓̏̓͗͐͋̅̈̍͌0̸̛̫̮̈́̌̅́̎1̸̠͉̞̜̩͇̒̃̚0̶̡̧͂̎͗͌̃́͋̈́͊̾̅͘͝1̴̢̢͖̣͖̝̱̤̥̰̙̹͓͐͗̂1̶̧̡̫͙͕͍̪̞͓͖̼̗̔̕1̵̛͗̃̃̀̈́̈̈́͊͒̍͑̐͝ ̧̠͔̯̞͍ -1001673949808
Callback data: None
Message: /tr rei jp-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:\Mob\SaitamaRobot\modules\helper_funcs\handlers.py", line 122, in handle_update
return self.callback(update, context)
File "E:\Mob\SaitamaRobot\modules\gtranslator.py", line 68, in totranslate
trans_str = trl.translate(text, lang_tgt=dest_lang)
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