in decisionai_plugin/common/util/retryrequests.py [0:0]
def delete(self, *args, **kwargs):
for n in range(self.count - 1, -1, -1):
try:
r = self.session.delete(*args, **kwargs)
if not 100 <= r.status_code < 300:
raise CommonException('statuscode: {}, message: {}'.format(r.status_code, r.content))
return r
except (CommonException, requests.exceptions.RequestException) as e:
self.session.close()
if n > 0:
time.sleep(self.interval * 0.001)
else:
raise e