1
0

follow-up prev: some clean-ups

re https://github.com/spesmilo/electrum/pull/7492
This commit is contained in:
SomberNight
2021-09-15 16:23:47 +02:00
parent 65c3a892cf
commit acbb363240
6 changed files with 27 additions and 25 deletions

View File

@@ -136,7 +136,7 @@ class OnchainInvoice(Invoice):
if not (0 <= value <= TOTAL_COIN_SUPPLY_LIMIT_IN_BTC * COIN):
raise InvoiceError(f"amount is out-of-bounds: {value!r} sat")
elif isinstance(value, str):
if value != "!":
if value != '!':
raise InvoiceError(f"unexpected amount: {value!r}")
else:
raise InvoiceError(f"unexpected amount: {value!r}")