- small correction
IssueID: OAM-242
Change-Id: I9977c5901c6b25ad39197f406af44a079f6fb32a
Signed-off-by: demx8as6 <martin.skorupski@highstreet-technologies.com>
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:
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: