Skip to content

Fixing __str__ issues with MeiliSearchApiError #306

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

Merged
merged 2 commits into from
Aug 10, 2021
Merged

Fixing __str__ issues with MeiliSearchApiError #306

merged 2 commits into from
Aug 10, 2021

Conversation

sanders41
Copy link
Collaborator

@sanders41 sanders41 commented Aug 10, 2021

Fixes #305

It may be possible to come up with a better error to return if we get more info on how to recreate the issue, but this should at least prevent the converting to string error and also keep other errors from happening in similar situations.

@sanders41 sanders41 requested a review from alallema August 10, 2021 14:34
Copy link
Contributor

@alallema alallema left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🎉 🚀
Thanks for this PR @sanders41 and thanks @elonzh for your review

@alallema
Copy link
Contributor

bors merge

@bors
Copy link
Contributor

bors bot commented Aug 10, 2021

@bors bors bot merged commit 4afda9d into main Aug 10, 2021
@bors bors bot deleted the api_error branch August 10, 2021 16:56
@alallema alallema added the bug Something isn't working label Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Converting MeiliSearchApiError to a string will raise AttributeError when the server returns a timeout error.
3 participants