From ac0a145865ecc75bfc185f7dad60c15cc78e0e4c Mon Sep 17 00:00:00 2001 From: R4SAS Date: Fri, 26 Jul 2024 22:31:59 +0300 Subject: [PATCH] just print json, do not encode string Signed-off-by: R4SAS --- pbincli/actions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pbincli/actions.py b/pbincli/actions.py index f1b3aaa..c23a36f 100644 --- a/pbincli/actions.py +++ b/pbincli/actions.py @@ -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: