mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 17:01:34 +00:00
test for NaN in Fiat.__str__
This commit is contained in:
parent
3838fdbdcc
commit
9fe24e32c0
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ class Fiat(object):
|
||||||
return 'Fiat(%s)'% self.__str__()
|
return 'Fiat(%s)'% self.__str__()
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
if self.value is None:
|
if self.value.is_nan():
|
||||||
return _('No Data')
|
return _('No Data')
|
||||||
else:
|
else:
|
||||||
return "{:.2f}".format(self.value) + ' ' + self.ccy
|
return "{:.2f}".format(self.value) + ' ' + self.ccy
|
||||||
|
|
Loading…
Add table
Reference in a new issue