Skip to content

Commit

Permalink
More rate limit printing for githubbackup
Browse files Browse the repository at this point in the history
  • Loading branch information
alneberg committed Jan 22, 2021
1 parent 7b5349a commit 41296ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backup_github.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def backup(user, password, access_token, organizations, dest):
os.mkdir(organization_destination_path)

for repository in chain(*repositories):
logger.info("Github API rate limit: {}".format(github_instance.get_rate_limit()))
if password is not None and repository.private is True:
source = repository.clone_url.replace(
"https://",
Expand Down

0 comments on commit 41296ed

Please sign in to comment.