e554244 Better handle error response from Kerberos servers

Authored and Committed by patrickt 3 months ago
    Better handle error response from Kerberos servers
    
    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>
    
        
file modified
+9 -5