diff --git a/funkwhale_cli.py b/funkwhale_cli.py index d5dbfb2..fb873dc 100755 --- a/funkwhale_cli.py +++ b/funkwhale_cli.py @@ -119,10 +119,10 @@ Read | Write (optional): Insert token from "Access token" here''') register_token = input() with open('.auth.json', 'rt') as f: - tkns = json.loads(f.read()) + tkns = json.load(f) with open('.auth.json', 'wt') as f: tkns[current_instance.instance] = register_token - f.write(json.dumps(tkns)) + f.write(json.dumps(tkns, indent=4)) del tkns del register_token del f