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:
parent
c22c0f06ae
commit
ac0a145865
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user