Bugfix: rpcauth: Specify encoding for output file

This commit is contained in:
Luke Dashjr 2020-11-25 15:05:58 +00:00
parent 492330e6a9
commit 732efacf78

View File

@ -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: