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

When XeroRateLimitExceeded is thrown the limit that was exceeded is not included in output #323

Open
Ian2020 opened this issue Dec 13, 2021 · 0 comments

Comments

@Ian2020
Copy link
Contributor

Ian2020 commented Dec 13, 2021

It would be good to see the exact limit that was exceeded when we get a rate limit exception in the exception's msg. As the code stands this is the output of an XeroRateLimitExceeded exception:

...
  File "/home/user/.local/lib/python3.9/site-packages/xero/basemanager.py", line 264, in wrapper
    raise XeroRateLimitExceeded(response, payload)
xero.exceptions.XeroRateLimitExceeded: please wait before retrying the xero api

The limit information is available in the exception, it's just not included in the error string.

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