diff --git a/add-metadata.py b/add-metadata.py index 2537132..6d95520 100755 --- a/add-metadata.py +++ b/add-metadata.py @@ -44,7 +44,7 @@ def retrieve_repo(name): warn(f"Error occured while getting {name} repo") raise - # print('.', file=sys.stderr, end='', flush=True) + print('.', file=sys.stderr, end='', flush=True) if is_stale(repo): raise Exception("Repo is too old or inactive") @@ -70,7 +70,7 @@ def parse(line): try: row = github_table_row(retrieve_repo(repo_name)) except Exception: - row = False + row = "skip" return row else: return line.rstrip() @@ -80,7 +80,7 @@ def run(): print('') for line in fileinput.input(): parsed = parse(line) - if parsed: + if parsed != "skip": print(parsed)