When a 401 response code is returned from the kerberos server the payload is not necessarily json formatted. To account for this, wrap the resp.json().get() call in a try/except block.
Signed-off-by: Patrick Talbert ptalbert@redhat.com
Thanks for fixing this! :thumbsup:
Pull-Request has been merged by lholecek
When a 401 response code is returned from the kerberos server the payload
is not necessarily json formatted. To account for this, wrap the
resp.json().get() call in a try/except block.
Signed-off-by: Patrick Talbert ptalbert@redhat.com