diff --git a/tools/gh_api.py b/tools/gh_api.py index 9d7a7d5..de3fbf3 100644 --- a/tools/gh_api.py +++ b/tools/gh_api.py @@ -17,7 +17,7 @@ import json try: import requests_cache except ImportError: - print("no cache", file=sys.stderr) + print("cache not available, install `requests_cache` for caching.", file=sys.stderr) else: requests_cache.install_cache("gh_api", expire_after=3600) diff --git a/tools/github_stats.py b/tools/github_stats.py index e170887..fe76aff 100755 --- a/tools/github_stats.py +++ b/tools/github_stats.py @@ -212,8 +212,7 @@ if __name__ == "__main__": print("We closed %d issues and merged %d pull requests." % (n_issues, n_pulls)) if milestone: - print("The full list can be seen `on GitHub `__" - % (project, milestone) + print("The full list can be seen `on GitHub `__".format(project=project,milestone=milestone) ) print()