mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
Merge pull request #5031 from spesmilo/daemon_error_forwarding
daemon: forward TypeError trace to client
This commit is contained in:
commit
0429fe5960
1 changed files with 4 additions and 1 deletions
|
@ -294,7 +294,10 @@ class Daemon(DaemonThread):
|
||||||
kwargs[x] = (config_options.get(x) if x in ['password', 'new_password'] else config.get(x))
|
kwargs[x] = (config_options.get(x) if x in ['password', 'new_password'] else config.get(x))
|
||||||
cmd_runner = Commands(config, wallet, self.network)
|
cmd_runner = Commands(config, wallet, self.network)
|
||||||
func = getattr(cmd_runner, cmd.name)
|
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
|
return result
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue