diff options
author | Jordan <me@jordan.im> | 2021-12-24 21:50:54 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2021-12-24 21:50:54 -0700 |
commit | f5d402fdc34f8a6a06a7100aa3260e0193e5e49d (patch) | |
tree | 123019684100267942d001465715819eb2cf8a21 | |
parent | d01aa921c9115ebe10e6cd1ce76ef1a4f3aeacca (diff) | |
download | dotfiles-f5d402fdc34f8a6a06a7100aa3260e0193e5e49d.tar.gz dotfiles-f5d402fdc34f8a6a06a7100aa3260e0193e5e49d.zip |
cgit-last-modified.py: print() -> sys.stderr.write() exceptions
-rwxr-xr-x | scripts/cgit-last-modified.py | 2 |
1 files changed, 1 insertions, 1 deletions
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/") |