Browse Source

just print json, do not encode string

Signed-off-by: R4SAS <r4sas@i2pmail.org>
master
R4SAS 4 months ago
parent
commit
ac0a145865
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 4
      pbincli/actions.py

4
pbincli/actions.py

@ -1,4 +1,4 @@ @@ -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): @@ -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:

Loading…
Cancel
Save