From 9fe24e32c082c75e632eccb29cb6f04763f79643 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Mon, 26 Feb 2018 18:04:44 +0100 Subject: [PATCH] test for NaN in Fiat.__str__ --- lib/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.py b/lib/util.py index 18473a459..925233603 100644 --- 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