nidhaloff / deep-translator

A flexible free and unlimited python tool to translate between different languages in a simple way using multiple translators.
https://deep-translator.readthedocs.io/en/latest/?badge=latest
Apache License 2.0
1.61k stars 185 forks source link

Update microsoft.py add validation in response #242

Closed lcard00 closed 1 year ago

lcard00 commented 1 year ago

Aditional validation for response type check. prevent error NoneType in "if type(response.json()) is dict:"