diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2021-08-07 13:47:57 +0200 |
---|---|---|
committer | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2021-08-07 20:50:18 +0200 |
commit | 8c203cf0e1b9558b54030c284ddf7706d64cdde2 (patch) | |
tree | 143674d10b9cd76e6062ebcb9799e72a1efed328 /contrib/signet | |
parent | 0eca5ebaced264d041de815316eaca8cf6fef92f (diff) |
contrib: catch bitcoin-cli RPC call errors in getcoins.py
Diffstat (limited to 'contrib/signet')
-rwxr-xr-x | contrib/signet/getcoins.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/signet/getcoins.py b/contrib/signet/getcoins.py index d0a12beb29..86755e6305 100755 --- a/contrib/signet/getcoins.py +++ b/contrib/signet/getcoins.py @@ -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: |