electrum

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

commit 0429fe59601027582cfe3ccb36f10ffeb3313481
parent 4c6379a9365dfaeefe09ee2d52ee9332b9bf6129
Author: ThomasV <thomasv@electrum.org>
Date:   Tue, 29 Jan 2019 09:37:30 +0100

Merge pull request #5031 from spesmilo/daemon_error_forwarding

daemon: forward TypeError trace to client
Diffstat:
Melectrum/daemon.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 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):