mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 02:33:24 -03:00
contrib: catch bitcoin-cli RPC call errors in getcoins.py
This commit is contained in:
parent
0eca5ebace
commit
8c203cf0e1
1 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,10 @@ def bitcoin_cli(rpc_command_and_params):
|
|||
except FileNotFoundError:
|
||||
print('The binary', args.cmd, 'could not be found.')
|
||||
exit()
|
||||
except subprocess.CalledProcessError:
|
||||
cmdline = ' '.join(argv)
|
||||
print(f'-----\nError while calling "{cmdline}" (see output above).')
|
||||
exit()
|
||||
|
||||
|
||||
if args.faucet.lower() == DEFAULT_GLOBAL_FAUCET:
|
||||
|
|
Loading…
Add table
Reference in a new issue