electrum

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

commit 6702c335e879e62e08cd3757ad5acca9bff4f6f4
parent 8c3ab63504a1b6b5846abc273e5a187ae9737fd7
Author: SomberNight <somber.night@protonmail.com>
Date:   Fri, 22 Mar 2019 17:30:12 +0100

network: (trivial) ignore empty string donation address

Diffstat:
Melectrum/network.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/electrum/network.py b/electrum/network.py @@ -376,7 +376,8 @@ class Network(PrintError): async def get_donation_address(): addr = await session.send_request('server.donation_address') if not bitcoin.is_address(addr): - self.print_error(f"invalid donation address from server: {addr}") + if addr: # ignore empty string + self.print_error(f"invalid donation address from server: {repr(addr)}") addr = '' self.donation_address = addr async def get_server_peers():