Skip to content

Commit 22a9f2c

Browse files
committed
Add 202 status code to _parse method
1 parent 92dbf00 commit 22a9f2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

microsoftgraph/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def _parse(self, response):
391391
r = response.json()
392392
else:
393393
r = response.text
394-
if status_code == 200 or status_code == 201:
394+
if status_code in (200, 201, 202):
395395
return r
396396
elif status_code == 204:
397397
return None

0 commit comments

Comments
 (0)