Skip to content

Commit ac0a145

Browse files
committed
just print json, do not encode string
Signed-off-by: R4SAS <[email protected]>
1 parent c22c0f0 commit ac0a145

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pbincli/actions.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import signal, sys
1+
import json, signal, sys
22
from urllib.parse import parse_qsl
33

44
from pbincli.api import Shortener
@@ -117,7 +117,7 @@ def send(args, api_client, settings=None):
117117
passphrase))
118118
except Exception as ex:
119119
response['result']['short_error'] = ex
120-
print(json_encode(response))
120+
print(json.dumps(response))
121121
sys.exit(0)
122122

123123
else:

0 commit comments

Comments
 (0)