Skip to content

Commit

Permalink
expire actually returns a key!
Browse files Browse the repository at this point in the history
  • Loading branch information
ABrain7710 committed Jan 22, 2025
1 parent 93039e4 commit 387ab23
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions augur/tasks/github/util/github_data_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ def __handle_github_ratelimit_response(self, response):
key_reset_time = 0

self.logger.info(f"\n\n\nAPI rate limit exceeded. Key resets in {key_reset_time} seconds. Informing key manager that key is expired")
self.key_client.expire(self.key, epoch_when_key_resets)
self.key = None
self.key = self.key_client.expire(self.key, epoch_when_key_resets)

else:
time.sleep(60)
Expand Down

0 comments on commit 387ab23

Please sign in to comment.