Closed cvolawless closed 9 years ago
When I place a response using an invalid api key, I get a JSONDecodeError as you try to return exceptions.
JSONDecodeError
client = optimizely.Client('123') project = client.Projects.get()
Returns JSONDecodeError: Expecting value: line 1 column 1 (char 0)
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Think you want to replace resp.json().get('message') with resp.text when raising those errors.
resp.json().get('message')
resp.text
When I place a response using an invalid api key, I get a
JSONDecodeError
as you try to return exceptions.Returns
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Think you want to replace
resp.json().get('message')
withresp.text
when raising those errors.