mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 08:51:32 +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__()
|
||||
|
||||
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…
Add table
Reference in a new issue