mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 08:33:18 +02:00
Fix problem with formatter intepreting a missing format letter as ERROR instead of 's'.
This commit is contained in:
parent
cb55c9a4f9
commit
9e82bd6f23
1 changed files with 0 additions and 2 deletions
|
|
@ -316,8 +316,6 @@ def _do_format(self, val, fmt):
|
|||
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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue