Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
timmo001 committed Apr 7, 2024
1 parent ce5c739 commit 7968065
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions systembridgebackend/modules/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,9 @@ async def _get_version_latest(self) -> Any | None:
self._logger.info("Get latest version from GitHub")

# Check if the rate limit allows the request
rate_limit = await self._check_rate_limit()
self._logger.debug("Rate limit: %s", rate_limit)
if rate_limit < 1:
rate_limit_remaining = await self._check_rate_limit()
self._logger.debug("Rate limit: %s", rate_limit_remaining)
if rate_limit_remaining < 1:
self._logger.warning("Rate limit exceeded. Skipping request.")
return self._version_latest

Expand Down

0 comments on commit 7968065

Please sign in to comment.