Remove the try/catch around jsonutils dumps, since this is
handled internally by jsonutils via the dumps default parameter
Change-Id: I66c63b441f61cde506ef40e3eace60c3c41e90ca
'headers': req.headers,
'body_hash': body_hash
}}
- creds_json = None
- try:
- creds_json = json.dumps(creds)
- except TypeError:
- creds_json = json.dumps(json.to_primitive(creds))
+ creds_json = json.dumps(creds)
headers = {'Content-Type': 'application/json'}
# Disable 'has no x member' pylint error