summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ogcp/views.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index a09e33e..b34c169 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -877,6 +877,10 @@ def action_client_info():
form.boot.data = db_client['boot']
r = server.get('/oglive/list')
+ if r.status_code != requests.codes.ok:
+ flash(_('ogServer: error retrieving oglive list'),
+ category='error')
+ return redirect(url_for('commands'))
available_oglives = r.json()['oglive']
for oglive in available_oglives:
choice = (oglive.get('directory'), oglive.get('directory'))