electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 4c81a77cccbd4886ac70ff136ee3ef7d4c37ea92
parent 1451c66a8f65e87555fce8a7111ddef898381598
Author: Johann Bauer <bauerj@bauerj.eu>
Date:   Mon,  5 Mar 2018 23:24:12 +0100

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

This reverts commit 1451c66a8f65e87555fce8a7111ddef898381598.

Diffstat:
Mlib/util.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/util.py b/lib/util.py @@ -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