#18393 closed Bug (fixed)
Don't let blocktrans crash on ValueError
Reported by: | Julien Phalip | Owned by: | nobody |
---|---|---|---|
Component: | Internationalization | Version: | 1.4 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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:1 by , 13 years ago
comment:2 by , 13 years ago
Triage Stage: | Unreviewed → Ready for checkin |
---|
comment:3 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Here's the pull request: https://github.com/django/django/pull/94