summaryrefslogtreecommitdiffstats
path: root/cli/objects/live.py
diff options
context:
space:
mode:
Diffstat (limited to 'cli/objects/live.py')
-rw-r--r--cli/objects/live.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/cli/objects/live.py b/cli/objects/live.py
index c90a4c2..7a057bf 100644
--- a/cli/objects/live.py
+++ b/cli/objects/live.py
@@ -13,5 +13,8 @@ class OgLive():
@staticmethod
def list_live(rest):
- r = rest.get('/oglive/list')
- print_json(r.text)
+ res = rest.get('/oglive/list')
+ if not res:
+ return 1
+ print_json(res.text)
+ return 0