Don't let blocktrans crash on ValueError
|Reported by:||julien||Owned by:||nobody|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
If a translator mistypes a variable name's format, causing the string formatting to fail with a ValueError, then the entire page will go down with a 500 error. That error should be ignored to prevent that.
Note: this is different than if the variable name itself is wrong. In that a case, a KeyError is returned but this is already taken care of by https://github.com/django/django/commit/16bb9c594c
Pull request coming soon.
Change History (4)
comment:3 Changed 4 years ago by Julien Phalip <jphalip@…>
- Resolution set to fixed
- Status changed from new to closed