Skip to content

Commit 13d8999

Browse files
added exception message in retry_handler
1 parent d0f5694 commit 13d8999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

socketlabs/injectionapi/core/retryhandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def send(self, body):
4646
response = self.__http_client.send_request(body)
4747

4848
if response.status in self.ErrorStatusCodes:
49-
raise HTTPException
49+
raise HTTPException("HttpStatusCode: {0}. Response contains server error.".format(response.status))
5050

5151
data = response.read().decode("utf-8")
5252
response_code = response.status

0 commit comments

Comments
 (0)