-
-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
NotValidPayload does not return relevant data #200
Comments
Update: I can update the code in |
@travisrecupero I have seen that issue in my earlier project. I didn't know the reason or understood why it should raise an exception if its only digit but I guess you open a PR for that issue, as I was working some other areas of this project it would be appreciated. |
@travisrecupero Sure please open a PR and I will get to it asap |
Description
I created an xml translator that uses this api for translations. I used to translate one word at a time until I saw
translate_batch(..)
. I am currently using the GoogleTranslator class (I don't reinstantiate this). The problem is that when one string of a batch is invalid, the string is not printed in the error. On my end, I cant step intotranslate_batch
to find my invalid string.Note that I am handling the 5k character limit so this is not the issue (by the error message, one might think this is their problem instead of a invalid translation).
What I Did
I just added an
except
and a print when I getNotValidPayload
The text was updated successfully, but these errors were encountered: