From f5d402fdc34f8a6a06a7100aa3260e0193e5e49d Mon Sep 17 00:00:00 2001 From: Jordan Date: Fri, 24 Dec 2021 21:50:54 -0700 Subject: cgit-last-modified.py: print() -> sys.stderr.write() exceptions --- scripts/cgit-last-modified.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cgit-last-modified.py b/scripts/cgit-last-modified.py index 5c95a9e..46d7720 100755 --- a/scripts/cgit-last-modified.py +++ b/scripts/cgit-last-modified.py @@ -19,7 +19,7 @@ for x in os.listdir(REPOS): md = repo.head.commit.committed_datetime md = md.astimezone(timezone.utc).strftime("%Y-%m-%d %H:%M:%S") except Exception as e: - print(e) + sys.stderr.write(e) continue d = os.path.join(REPOS, x, "info/web/") -- cgit v1.2.3-54-g00ecf