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-08 15:27:15 +0200
commitdcbba3a91297d988c39bbf2447942c19feb6631b (patch)
tree6c1de3c51967e8bf2f4ddd992a15b5d518894fb0 /ogcp/views.py
parentcf02e0c051e664cdfd77162fac3a7c8302620324 (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)