try:
result = self.stack_request("DescribeStackResources", "GET",
**parameters)
- except:
+ except Exception:
logger.debug("Failed to lookup resource details with key %s:%s"
% (lookup_key, lookup_value))
else:
try:
body = json.loads(resp_body)
msg = body['error']['message']
- except:
+ except (ValueError, KeyError):
msg = resp_body
raise exception.KeystoneError(resp.status, msg)
tenant_id = headers.get('X-Tenant-Id')
auth_url = headers.get('X-Auth-Url')
roles = headers.get('X-Roles')
- except:
+ except Exception:
raise exception.NotAuthenticated()
req.context = self.make_context(auth_token=token,
# otherwise quotes get mangled and json.loads breaks
try:
subelement.text = json.dumps(value)
- except:
+ except TypeError:
subelement.text = str(value)
else:
self.object_to_element(value, subelement)
try:
err_body = action_result.get_unserialized_body()
serializer.default(action_result, err_body)
- except:
+ except Exception:
logging.warning("Unable to serialize exception response")
return action_result