From e0f8c35e078bee73ce213cf8ccd082c702772b85 Mon Sep 17 00:00:00 2001 From: Leon Schuermann Date: Fri, 1 Nov 2024 11:46:44 -0400 Subject: [PATCH] mirrorcheck.py: don't require GitHub issue template unconditionally --- mirrorcheck.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mirrorcheck.py b/mirrorcheck.py index 0e6c8e8..6ef35cd 100755 --- a/mirrorcheck.py +++ b/mirrorcheck.py @@ -431,8 +431,9 @@ def main(): log.error("Cannot generate GitHub issue without template.") return 1 - with open(args.gh_issue_template, "r") as f: - gh_issue_template = jinja2.Template(f.read()) + if args.gh_issue_template: + with open(args.gh_issue_template, "r") as f: + gh_issue_template = jinja2.Template(f.read()) updated_urls = copy.deepcopy(urls) issues = mirrorcheck(log, mirrors, updated_urls)