Handle responses without JSON or detail field
Handle responses without JSON or detail field

Check the response for JSON and a detail field before trying to access
them within SmartFileResponseException.  This could occur if the server
returns a 500.

smartfile/client-python