Commit b48ca869 authored by echel0n's avatar echel0n

Fixed issue with backend API health checks and SSL errors

parent 03766e8c
......@@ -110,11 +110,11 @@ class API(object):
latest_exception = None
for i in range(3):
if not self.health:
latest_exception = "SiCKRAGE backend API is currently unreachable ..."
continue
try:
if not self.health:
latest_exception = "SiCKRAGE backend API is currently unreachable ..."
continue
resp = self.session.request(method, urljoin(self.api_base, "/".join([self.api_version, url])), timeout=timeout, hooks={'response': self.throttle_hook}, **kwargs)
resp.raise_for_status()
if resp.status_code == 204:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment