1
0

fix plot.py

fixes https://github.com/spesmilo/electrum/issues/9058
This commit is contained in:
SomberNight
2024-05-22 15:26:26 +00:00
parent 48513df4ae
commit e25658d724
3 changed files with 7 additions and 3 deletions

View File

@@ -238,6 +238,7 @@ class Satoshis(object):
def __new__(cls, value):
self = super(Satoshis, cls).__new__(cls)
# note: 'value' sometimes has msat precision
assert isinstance(value, (int, Decimal)), f"unexpected type for {value=!r}"
self.value = value
return self