We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ae5d5a commit 2d4108cCopy full SHA for 2d4108c
1 file changed
convertapi/client.py
@@ -51,11 +51,11 @@ def handle_response(self, r):
51
except ValueError:
52
raise e
53
54
- try:
55
- return r.json()
56
- except simplejson.errors.JSONDecodeError as e:
+ if r.content == b'':
57
raise AsyncConversionInProgress
58
+ return r.json()
+
59
def url(self, path):
60
return "%s%s?Secret=%s" % (convertapi.base_uri, path, convertapi.api_secret)
61
0 commit comments