From c57cc6ad1233123e46202959eea9e18d917f8682 Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Tue, 19 Oct 2021 00:02:08 -0500 Subject: [PATCH] Add workaround for 39hats.com For some reason, 39hats.com returns a nil registrant. Ideally, I'd like to figure out _why_ there's not something returned, but in the meantime we can just check if it's empty and skip it. --- template.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/template.html b/template.html index ff352c9..ca5911a 100644 --- a/template.html +++ b/template.html @@ -56,7 +56,11 @@
{{.FetchTime.Format "Jan 2, 2006 15:04:05 -0700" }}
{{if not .Available}}
Owner
+ {{if .Registrant}}
{{.Registrant.Name}} <{{.Registrant.Email}}>
+ {{else}} +
Information unavailable
+ {{end}}
Since
{{(parseTime .DomainInfo.CreatedDate).Format "Jan 2, 2006" }}
{{end}}