#18393 closed Bug (fixed)
Don't let blocktrans crash on ValueError
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