diff --git a/utils/version.py b/utils/version.py index 0818c87..a24f023 100644 --- a/utils/version.py +++ b/utils/version.py @@ -7,6 +7,11 @@ def checkversion(__VERSION__: str): response = requests.get( "https://api.github.com/repos/elebumm/RedditVideoMakerBot/releases/latest" ) + if response.status_code == 403: # Rate limit + print( + f"Skipping script version check because we exceeded GitHub's rate limit. Using version ({__VERSION__})." + ) + return latestversion = response.json()["tag_name"] if __VERSION__ == latestversion: print_step(f"You are using the newest version ({__VERSION__}) of the bot")