electrum-personal-server

Maximally lightweight electrum server for a single user
git clone https://git.parazyd.org/electrum-personal-server
Log | Files | Refs | README

commit 99999f2d4a49509c2871e88b5a2835bf86badd8c
parent 03454caedfee92497de6e9dc23c9e2dfe8a11743
Author: chris-belcher <chris-belcher@users.noreply.github.com>
Date:   Fri, 19 Apr 2019 20:22:01 +0100

Improve error message to consider other causes

The RPC call listunspent may fail for other reasons than Core
being compiled with no wallet

Diffstat:
Melectrumpersonalserver/server/common.py | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/electrumpersonalserver/server/common.py b/electrumpersonalserver/server/common.py @@ -682,11 +682,11 @@ def main(): time.sleep(5) try: rpc.call("listunspent", []) - except JsonRpcError: - logger.error("Wallet related RPC calls not found, looks like the " + + except JsonRpcError as e: + logger.error(repr(e)) + logger.error("Wallet related RPC call failed, possibly the " + "bitcoin node was compiled with the disable wallet flag") return - if opts.rescan: rescan_script(logger, rpc) return