only print status if ok
- small correction
IssueID: OAM-242
Change-Id: I9977c5901c6b25ad39197f406af44a079f6fb32a
Signed-off-by: demx8as6 <martin.skorupski@highstreet-technologies.com>
diff --git a/solution/dev/client-scripts-ves-v7/globalVesEventEmitter.py b/solution/dev/client-scripts-ves-v7/globalVesEventEmitter.py
index 9f44a5c..26c3879 100644
--- a/solution/dev/client-scripts-ves-v7/globalVesEventEmitter.py
+++ b/solution/dev/client-scripts-ves-v7/globalVesEventEmitter.py
@@ -44,11 +44,12 @@
except requests.exceptions.RequestException as e:
# catastrophic error. bail.
raise SystemExit(e)
-
- if response.status_code >= 200 and response.status_code <= 500:
+
+ if response.status_code >= 200 and response.status_code <= 300:
print(response)
else:
- sys.exit('Reading VES "stndDefined" message template failed.')
+ print(response.status_code)
+ sys.exit('Sending VES "stndDefined" message template failed with code %d.' % response.status_code)
def sendHttpGet(url):
try:
@@ -60,7 +61,7 @@
except requests.exceptions.RequestException as e:
# catastrophic error. bail.
raise SystemExit(e)
-
+
if response.status_code >= 200 and response.status_code < 300:
return response.json()
else: