Fix problem with formatter intepreting a missing format letter as ERROR instead of 's'.

This commit is contained in:
Charles Haley 2011-01-07 08:25:21 +00:00
parent cb55c9a4f9
commit 9e82bd6f23

View File

@ -316,8 +316,6 @@ class TemplateFormatter(string.Formatter):
except:
raise ValueError(
_('format: type {0} requires a decimal (float) value, got {1}').format(typ, val))
else:
raise ValueError(_('format: unknown format type letter {0}').format(typ))
return unicode(('{0:'+fmt+'}').format(val))
def _explode_format_string(self, fmt):