tinterface.debug will now also print errors - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 4fc43da3444ce2ec3e09e333a9056576a1cf58dd DIR parent 62e6ca50e1aa810b501d85b26bdc4f6fa6208f54 HTML Author: SomberNight <somber.night@protonmail.com> Date: Wed, 26 Jun 2019 01:16:34 +0200 interface.debug will now also print errors Diffstat: M electrum/interface.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- DIR diff --git a/electrum/interface.py b/electrum/interface.py t@@ -38,7 +38,7 @@ import logging import aiorpcx from aiorpcx import RPCSession, Notification, NetAddress from aiorpcx.curio import timeout_after, TaskTimeout -from aiorpcx.jsonrpc import JSONRPC +from aiorpcx.jsonrpc import JSONRPC, CodeMessageError from aiorpcx.rawsocket import RSClient import certifi t@@ -115,6 +115,9 @@ class NotificationSession(RPCSession): timeout) except (TaskTimeout, asyncio.TimeoutError) as e: raise RequestTimedOut(f'request timed out: {args} (id: {msg_id})') from e + except CodeMessageError as e: + self.maybe_log(f"--> {repr(e)} (id: {msg_id})") + raise else: self.maybe_log(f"--> {response} (id: {msg_id})") return response