Skip to content

Commit 34516f4

Browse files
committed
Fix mix of tab and space indents.
1 parent bc5cb4b commit 34516f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

roundup/rest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2075,17 +2075,17 @@ def dispatch(self, method, uri, input):
20752075
# User exceeded limits: tell humans how long to wait
20762076
# Headers above will do the right thing for api
20772077
# aware clients.
2078-
try:
2079-
retry_after = limitStatus['Retry-After']
2080-
except KeyError:
2078+
try:
2079+
retry_after = limitStatus['Retry-After']
2080+
except KeyError:
20812081
# handle race condition. If the time between
20822082
# the call to grca.update and grca.status
20832083
# is sufficient to reload the bucket by 1
20842084
# item, Retry-After will be missing from
20852085
# limitStatus. So report a 1 second delay back
20862086
# to the client. We treat update as sole
20872087
# source of truth for exceeded rate limits.
2088-
retry_after = 1
2088+
retry_after = 1
20892089

20902090
msg = _("Api rate limits exceeded. Please wait: %s seconds.") % retry_after
20912091
output = self.error_obj(429, msg, source="ApiRateLimiter")

0 commit comments

Comments
 (0)