commit 9fe24e32c082c75e632eccb29cb6f04763f79643
parent 3838fdbdcc9b2baf2951248203bb0edcc123bea7
Author: ThomasV <thomasv@electrum.org>
Date: Mon, 26 Feb 2018 18:04:44 +0100
test for NaN in Fiat.__str__
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/util.py b/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