Skip to content

Commit 71ca0da

Browse files
committed
Merge branch 'develop' into python24-support
2 parents 3660231 + 1b81d95 commit 71ca0da

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ox3apiclient/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,9 @@ def post(self, url, data=None):
275275
def delete(self, url):
276276
""""""
277277
res = self.request(self._resolve_url(url), method='DELETE')
278+
# Catch no content responses from some delete actions.
279+
if res.code == 204:
280+
return json.loads('[]')
278281
return json.loads(res.read())
279282

280283

0 commit comments

Comments
 (0)