Commits

Kai Diefenbach  committed 41bce48

tag decimal_l10n: return origin value if it's no float.

  • Participants
  • Parent commits 8b7aa8d

Comments (0)

Files changed (1)

File lfs/core/templatetags/lfs_tags.py

     try:
         value = float(value)
     except ValueError:
-        pass
+        return value
 
     format_str = "%%.%sf" % digits
     return locale.format_string(format_str, value)