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

Better exceptions #51

Open
ml31415 opened this issue Dec 13, 2023 · 0 comments
Open

Better exceptions #51

ml31415 opened this issue Dec 13, 2023 · 0 comments

Comments

@ml31415
Copy link
Collaborator

ml31415 commented Dec 13, 2023

At least the way I use the Betfair API so far, there are mainly three kinds of issues to distinguish in terms of how to respond to them:

  • temporary issues, just wait and repeat
  • needs relogin, connection loss or something
  • login failed for permanent reasons, needs user intervention

The thrown errors should make it easy to distinguish between those categories with a simple except ... or isinstance(...) check. For that, the existing exception classes should be refactored.

Supersedes #29

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

No branches or pull requests

1 participant