Skip to content

Commit

Permalink
Bug fix for googleapis#117
Browse files Browse the repository at this point in the history
  • Loading branch information
Royce Melborn committed Sep 25, 2018
1 parent a2141d8 commit 39f5c0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions O365/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ def get_response(request_url, **kwargs):
if response.status_code == 401:
raise RuntimeError('API returned status code 401 Unauthorized, check the connection credentials')

response_json = response.json()
response_json = response.json(object_pairs_hook=MicroDict)
if 'value' not in response_json:
raise RuntimeError('Something went wrong, received an unexpected result \n{}'.format(response_json))

response_values = [MicroDict(x) for x in response_json['value']]
response_values=response_json['value']
return response_values

0 comments on commit 39f5c0d

Please sign in to comment.