Browse Source

daemon: forward TypeError trace to client

password_lineedit
Janus 6 years ago
parent
commit
2737744bfe
  1. 5
      electrum/daemon.py

5
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):

Loading…
Cancel
Save