GitterPy
GitterPy copied to clipboard
Dealing with delete method and not returning text
When using the request_process
is used for deleting (DELETE
method), it won't return a value. So:
- It returns
<Response [204]>
- the
.text
value fromrequests
module is empty.
The proposal in this patch is to check the reply text and, if empty, return the response. Not sure if there is a more adequate way to do this.