summaryrefslogtreecommitdiffstats
path: root/cli/cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'cli/cli.py')
-rw-r--r--cli/cli.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/cli.py b/cli/cli.py
index 81dd846..9e5ad04 100644
--- a/cli/cli.py
+++ b/cli/cli.py
@@ -47,7 +47,9 @@ class OgREST():
r = requests.post(f'{self.URL}{path}',
headers=self.HEADERS,
json=payload)
- print(r.text)
+ if r.text:
+ print(r.text)
+
if r.status_code not in {200, 202}:
sys.exit(f"Unsuccessful request to ogServer: "
f"Response with {r.status_code} HTTP status code")