Revert "Check if value has 'is_nan' before calling it"

This reverts commit 1451c66a8f.
This commit is contained in:
Johann Bauer 2018-03-05 23:24:12 +01:00
parent 1451c66a8f
commit 4c81a77ccc
No known key found for this signature in database
GPG Key ID: 84F1BF925B1F484D
1 changed files with 1 additions and 1 deletions

View File

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