mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-12 19:20:42 +02:00
Bugfix: rpcauth: Specify encoding for output file
This commit is contained in:
parent
492330e6a9
commit
732efacf78
@ -40,7 +40,7 @@ def main():
|
||||
rpcauth = f'{args.username}:{salt}${password_hmac}'
|
||||
|
||||
if args.output:
|
||||
file = open(args.output, "x")
|
||||
file = open(args.output, "x", encoding="utf8")
|
||||
file.write(rpcauth)
|
||||
|
||||
if args.json:
|
||||
|
Loading…
Reference in New Issue
Block a user