mirror of
https://github.com/r4sas/PBinCLI
synced 2025-08-30 15:42:18 +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 urllib.parse import parse_qsl
|
||||||
|
|
||||||
from pbincli.api import Shortener
|
from pbincli.api import Shortener
|
||||||
@ -117,7 +117,7 @@ def send(args, api_client, settings=None):
|
|||||||
passphrase))
|
passphrase))
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
response['result']['short_error'] = ex
|
response['result']['short_error'] = ex
|
||||||
print(json_encode(response))
|
print(json.dumps(response))
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user