test for NaN in Fiat.__str__

This commit is contained in:
ThomasV 2018-02-26 18:04:44 +01:00
parent 3838fdbdcc
commit 9fe24e32c0
1 changed files with 1 additions and 1 deletions

View File

@ -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