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.
This commit is contained in:
Chandler Swift 2021-10-19 00:02:08 -05:00
parent c1cf6ee3a7
commit c57cc6ad12
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F

View file

@ -56,7 +56,11 @@
<dd>{{.FetchTime.Format "Jan 2, 2006 15:04:05 -0700" }}</dd> <dd>{{.FetchTime.Format "Jan 2, 2006 15:04:05 -0700" }}</dd>
{{if not .Available}} {{if not .Available}}
<dt>Owner</dt> <dt>Owner</dt>
{{if .Registrant}}
<dd><a href="mailto:{{.Registrant.Email}}">{{.Registrant.Name}} &lt;{{.Registrant.Email}}&gt</a></dd> <dd><a href="mailto:{{.Registrant.Email}}">{{.Registrant.Name}} &lt;{{.Registrant.Email}}&gt</a></dd>
{{else}}
<dd>Information unavailable</dd>
{{end}}
<dt>Since</dt> <dt>Since</dt>
<dd>{{(parseTime .DomainInfo.CreatedDate).Format "Jan 2, 2006" }}</dd> <dd>{{(parseTime .DomainInfo.CreatedDate).Format "Jan 2, 2006" }}</dd>
{{end}} {{end}}