Browse Source

test for NaN in Fiat.__str__

3.1
ThomasV 7 years ago
parent
commit
9fe24e32c0
  1. 2
      lib/util.py

2
lib/util.py

@ -103,7 +103,7 @@ class Fiat(object):
return 'Fiat(%s)'% self.__str__()
def __str__(self):
if self.value is None:
if self.value.is_nan():
return _('No Data')
else:
return "{:.2f}".format(self.value) + ' ' + self.ccy

Loading…
Cancel
Save