Browse Source
Merge pull request #5031 from spesmilo/daemon_error_forwarding
daemon: forward TypeError trace to client
password_lineedit
ThomasV
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
1 deletions
-
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) |
|
|
|
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): |
|
|
|