-
Notifications
You must be signed in to change notification settings - Fork 444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: "not all arguments converted during string formatting" in on_export_download_dialog_done #7599
Comments
Sentry issue: TRIBLER-1C0 |
kozlovsky
added a commit
to kozlovsky/tribler
that referenced
this issue
Oct 2, 2023
…e the correct number of positional parameters
kozlovsky
added a commit
to kozlovsky/tribler
that referenced
this issue
Oct 2, 2023
…e the correct number of positional parameters
kozlovsky
added a commit
that referenced
this issue
Oct 2, 2023
Fixes #7599: TypeError when the translated string does not have the correct number of positional parameters
Fixed in #7615 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here:
The reason for the error is an incorrect translation in
ru_RU.ts
:We already have a
TranslatedString
class that catches KeyError exception, it should catchTypeError
exceptions as well to prevent the application crash in case of such an error.Also, it may be a good idea to add a tool that analyzes translation files and checks that the number of %s placeholders in each translated string is the same as in the corresponding original string.
The text was updated successfully, but these errors were encountered: