Mercurial > p > roundup > code
changeset 7158:89f84f0d7cd3
Fix mix of tab and space indents.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 23 Feb 2023 16:02:51 -0500 |
| parents | 68ff3d2a9f6b |
| children | 765222ef4cec |
| files | roundup/rest.py |
| diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/roundup/rest.py Thu Feb 23 15:43:54 2023 -0500 +++ b/roundup/rest.py Thu Feb 23 16:02:51 2023 -0500 @@ -2075,9 +2075,9 @@ # User exceeded limits: tell humans how long to wait # Headers above will do the right thing for api # aware clients. - try: - retry_after = limitStatus['Retry-After'] - except KeyError: + try: + retry_after = limitStatus['Retry-After'] + except KeyError: # handle race condition. If the time between # the call to grca.update and grca.status # is sufficient to reload the bucket by 1 @@ -2085,7 +2085,7 @@ # limitStatus. So report a 1 second delay back # to the client. We treat update as sole # source of truth for exceeded rate limits. - retry_after = 1 + retry_after = 1 msg = _("Api rate limits exceeded. Please wait: %s seconds.") % retry_after output = self.error_obj(429, msg, source="ApiRateLimiter")
