def get_response_data(response):
try:<EOL><INDENT>return response.json()<EOL><DEDENT>except ValueError:<EOL><INDENT>return response.content<EOL><DEDENT>
Handles getting response data from the requests module where .json() can raise an error