mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-14 17:04:55 +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")
|
logger.error(f"Operation finished")
|
||||||
else:
|
else:
|
||||||
if HAVE_MSGSPEC:
|
if HAVE_MSGSPEC:
|
||||||
print(msgspec.json.encode(result))
|
print(msgspec.json.encode(result).decode('utf-8', errors='ignore'))
|
||||||
else:
|
else:
|
||||||
print(json.dumps(result, default=serialize_datetime))
|
print(json.dumps(result, default=serialize_datetime))
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
Loading…
Add table
Reference in a new issue