-
Notifications
You must be signed in to change notification settings - Fork 217
fix: Upload session commit return None on 202 #718
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Upload session commit return None on 202 #718
Conversation
Closes: SDK-2089 Fixes: #715
Pull Request Test Coverage Report for Build 2033988393
💛 - Coveralls |
antusus
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
boxsdk/object/upload_session.py
Outdated
| data=json.dumps(body), | ||
| ) | ||
| except BoxAPIException as box_api_exc: | ||
| if box_api_exc.status == 202: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could use this from http module:
| if box_api_exc.status == 202: | |
| if box_api_exc.status == HTTPStatus.ACCEPTED: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point
d9d2a92 to
e13fa00
Compare
antusus
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Closes: SDK-2089
Fixes: #715