mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-08 05:54:25 +08:00
CLI: Don't show bytes json object on output
This commit is contained in:
parent
d79f2094da
commit
bac4aaf4d5
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ def entrypoint(*args, **kwargs):
|
|||
logger.error(f"Operation finished")
|
||||
else:
|
||||
if HAVE_MSGSPEC:
|
||||
print(msgspec.json.encode(result))
|
||||
print(msgspec.json.encode(result).decode('utf-8', errors='ignore'))
|
||||
else:
|
||||
print(json.dumps(result, default=serialize_datetime))
|
||||
sys.exit(0)
|
||||
|
|
Loading…
Add table
Reference in a new issue