aboutsummaryrefslogtreecommitdiff
path: root/contrib/signet
diff options
context:
space:
mode:
authorwillcl-ark <will8clark@gmail.com>2022-09-30 13:12:32 +0100
committerwillcl-ark <will8clark@gmail.com>2022-09-30 13:20:48 +0100
commitbe59bd17ec753af7cc763474f2432d12bfc88c2f (patch)
treecb3fc5baaeca77635ef59d18490e3908ed7ff98e /contrib/signet
parent33eef562a321ce772a9a88073a78a85894cb3fe8 (diff)
downloadbitcoin-be59bd17ec753af7cc763474f2432d12bfc88c2f.tar.xz
contrib: Fix capture_output in getcoins.py
Our required Python version 3.6.12 does not support `capture_output` as a subprocess.run argument; this was added in python 3.7. We can emulate it by setting stdout and stderr to subprocess.PIPE
Diffstat (limited to 'contrib/signet')
-rwxr-xr-xcontrib/signet/getcoins.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/signet/getcoins.py b/contrib/signet/getcoins.py
index 147d12600d..a069f5fad3 100755
--- a/contrib/signet/getcoins.py
+++ b/contrib/signet/getcoins.py
@@ -129,7 +129,7 @@ if args.captcha != '': # Retrieve a captcha
# Convert SVG image to PPM, and load it
try:
- rv = subprocess.run([args.imagemagick, 'svg:-', '-depth', '8', 'ppm:-'], input=res.content, check=True, capture_output=True)
+ rv = subprocess.run([args.imagemagick, 'svg:-', '-depth', '8', 'ppm:-'], input=res.content, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
except FileNotFoundError:
raise SystemExit(f"The binary {args.imagemagick} could not be found. Please make sure ImageMagick (or a compatible fork) is installed and that the correct path is specified.")