summaryrefslogtreecommitdiffstats
path: root/ogcp/views.py
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-09-08 15:27:15 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-09-27 09:48:36 +0200
commitd74ad9336ecd3dea3728b9cbbc611e1c56404e28 (patch)
tree1af9d3f65cbf7a37c85c4dec4b2c841e08c78009 /ogcp/views.py
parent3459de36f35839e98e894ae3b58c4f4374d90913 (diff)
Ignore unreachable ogServers
Otherwise, ogCP crashes trying to connect to unreachable ogServers.
Diffstat (limited to 'ogcp/views.py')
-rw-r--r--ogcp/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index 16b4fba..84bf0e1 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -201,6 +201,8 @@ def multi_request(method, uri, payload=None):
else:
raise Exception('Invalid method, use get or post')
+ if not r:
+ continue
response['server'] = server
response['json'] = r.json()
responses.append(response)