From: Oto Šťáva Date: Mon, 12 Dec 2022 07:42:58 +0000 (+0100) Subject: fixup! scripts, doc: generate vcs info for archives, use for copyright year X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fdoc-year;p=thirdparty%2Fknot-resolver.git fixup! scripts, doc: generate vcs info for archives, use for copyright year --- diff --git a/doc/conf.py b/doc/conf.py index 9bc897ae4..a88e11757 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -54,9 +54,8 @@ if not commit_year_got: commit_year = commit_date.year commit_year_src = '.kr-vcs-info' commit_year_got = True - except OSError as e: - if e.errno != errno.ENOENT: - raise e + except FileNotFoundError: + pass print('Using copyright year ({year}) from {year_src}'.format( year=commit_year, year_src=commit_year_src))