spansh.py: pretty print raw output

This commit is contained in:
alterNERDtive 2022-09-05 15:49:01 +02:00
parent 1a76ca59d4
commit d2af6b90e4
Signed by: alterNERDtive
GPG key ID: 547787A4FE6533F1

View file

@ -201,6 +201,8 @@ try:
out = getOldStationsInSystem(args.system, args.raw)
else:
out = getOldStations(args.raw)
if args.raw:
out = JSON.dumps(out, indent=2)
elif args.subcommand == "systemexists":
out = systemExists(args.system, args.raw)
except ServerError as e: