Skip to content
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 bad error check causing bulk import methods to fail #206

Merged
merged 1 commit into from
Oct 27, 2021

Conversation

cpurules
Copy link
Contributor

Fixes #188 and #203

For some reason it seems like the bulkImport methods were expecting the data being POSTed to be altered... the requests library doesn't do that. Since this entirely broke the error checking and thus the methods altogether, I replaced it with a simple status_code check. 201 is successful per the docs, so if it isn't 201, raise an UpdateError with the response data.

(Sorry - got it right this time!)

@tariqdaouda tariqdaouda merged commit 2d923cc into ArangoDB-Community:dev Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants