From 2737744bfe8e9bd681a38c0eac30542763646a67 Mon Sep 17 00:00:00 2001 From: Janus Date: Fri, 25 Jan 2019 15:31:45 +0100 Subject: [PATCH] daemon: forward TypeError trace to client --- electrum/daemon.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/electrum/daemon.py b/electrum/daemon.py index 0db918c4b..b4b021dde 100644 --- a/electrum/daemon.py +++ b/electrum/daemon.py @@ -294,7 +294,10 @@ class Daemon(DaemonThread): kwargs[x] = (config_options.get(x) if x in ['password', 'new_password'] else config.get(x)) cmd_runner = Commands(config, wallet, self.network) func = getattr(cmd_runner, cmd.name) - result = func(*args, **kwargs) + try: + result = func(*args, **kwargs) + except TypeError as e: + raise Exception("Wrapping TypeError to prevent JSONRPC-Pelix from hiding traceback") from e return result def run(self):