Skip to content

Commit

Permalink
print to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis-Averin committed Feb 27, 2024
1 parent 5634c33 commit 1159f87
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/check-urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,7 @@ def main(files):
checker.join()

if BROKEN_URLS:
# Flush stdout buffer before print to stderr
print("Errors:", flush=True)
print("Errors:", file=sys.stderr, flush=True)
for url, files in BROKEN_URLS.items():
print("BROKEN URL: '%s' in files: %s" % (url, ", ".join(files)), file=sys.stderr, flush=True)
if BROKEN_URLS:
Expand Down

0 comments on commit 1159f87

Please sign in to comment.