Skip to content
Snippets Groups Projects
Commit d04c9e85 authored by Robert Latta's avatar Robert Latta
Browse files

reinstated check for expired guid as API is giving 200 resposnse again

parent a0f3fb24
No related branches found
No related tags found
No related merge requests found
......@@ -151,6 +151,13 @@ class IMS(object):
if response_.status_code == requests.codes.unauthorized:
return True
if response_.status_code == requests.codes.ok:
r = response_.json()
if r and 'HasErrors' in r and r['HasErrors']:
for e in r['Errors']:
if 'Guid expired' in e['ErrorMessage']:
return True
return False
while True:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment