1
1
mirror of https://github.com/r4sas/PBinCLI synced 2025-01-09 22:37:53 +00:00

just print json, do not encode string

Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
R4SAS 2024-07-26 22:31:59 +03:00
parent c22c0f06ae
commit ac0a145865
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2

View File

@ -1,4 +1,4 @@
import signal, sys
import json, signal, sys
from urllib.parse import parse_qsl
from pbincli.api import Shortener
@ -117,7 +117,7 @@ def send(args, api_client, settings=None):
passphrase))
except Exception as ex:
response['result']['short_error'] = ex
print(json_encode(response))
print(json.dumps(response))
sys.exit(0)
else: