Skip to content

Commit

Permalink
mirrorcheck.py: don't require GitHub issue template unconditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
lschuermann committed Nov 1, 2024
1 parent 19e5a60 commit e0f8c35
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mirrorcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e0f8c35

Please sign in to comment.