From 75d8f523c43491a254f2cdb3204facd58a4563da Mon Sep 17 00:00:00 2001 From: Robert de Bock Date: Tue, 10 Nov 2020 14:22:02 +0100 Subject: [PATCH] Even without contributors. --- templates/README.md.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/README.md.j2 b/templates/README.md.j2 index d5e847d..9897c2a 100644 --- a/templates/README.md.j2 +++ b/templates/README.md.j2 @@ -134,17 +134,20 @@ image="debian" tag="stable" tox {{ meta.galaxy_info.license }} {% if github_contributors is defined %} +{% if github_contributors.json is defined %} {% if github_contributors.json | length > 1 %} ## [Contributors](#contributors) I'd like to thank everybody that made contributions to this repository. It motivates me, improves the code and is just fun to collaborate. -{% for contributor in github_contributors.json %}{% if contributor.login != "robertdebock" %} +{% for contributor in github_contributors.json %}{% if contributor.login is defined %}{% if contributor.login != "robertdebock" %} - [{{ contributor.login }}](https://github.com/{{ contributor.login }}) {% endif %} +{% endif %} {% endfor %} {% endif %} {% endif %} +{% endif %} ## [Author Information](#author-information)