tCLI: remove timeout for offline commands - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit de83ab6d4a05ec7f036da16e8054ca158666e3d0
DIR parent b0902940b5c266c2d38c4bd7cd0a5d33e8696491
HTML Author: SomberNight <somber.night@protonmail.com>
Date: Wed, 4 Sep 2019 14:35:04 +0200
CLI: remove timeout for offline commands
e.g. when interacting with hw wallets (e.g. signmessage)
it does not make sense to time out
also, str(e) of some exceptions such as TimeoutError is ""...
Diffstat:
M run_electrum | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
DIR diff --git a/run_electrum b/run_electrum
t@@ -395,7 +395,7 @@ if __name__ == '__main__':
print_msg("To run this command without a daemon, use --offline")
sys_exit(1)
except Exception as e:
- print_stderr(e)
+ print_stderr(str(e) or repr(e))
sys_exit(1)
else:
if cmd.requires_network:
t@@ -406,9 +406,9 @@ if __name__ == '__main__':
coro = run_offline_command(config, config_options, plugins)
fut = asyncio.run_coroutine_threadsafe(coro, loop)
try:
- result = fut.result(10)
+ result = fut.result()
except Exception as e:
- print_stderr(e)
+ print_stderr(str(e) or repr(e))
sys_exit(1)
if isinstance(result, str):
print_msg(result)