From 5132c06985fdac3e9025d6ad6ed8e09cec933e7b Mon Sep 17 00:00:00 2001 From: D13ce Date: Tue, 12 Dec 2023 12:14:14 +0100 Subject: [PATCH] (NOBIDS) Demote "no resolution" from error to warning --- db/ens.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/ens.go b/db/ens.go index 0a887a15ec..eb8ab0d0b9 100644 --- a/db/ens.go +++ b/db/ens.go @@ -411,9 +411,9 @@ func (bigtable *Bigtable) ImportEnsUpdates(client *ethclient.Client) error { if name != "" { err := validateEnsName(client, name, &alreadyChecked, nil) if err != nil { - if err.Error() == "not a resolver" { - // if resolving the given name results in an address that is not a resolver, we cannot do anything with it and just skip it - logger.Warnf("resolving name [%s] resulted in an address that is not a resolver, skipping it", name) + if err.Error() == "not a resolver" || err.Error() == "no resultion" { + // if resolving the given name results in an address that is not a resolver or does not have any resolution, we cannot do anything with it and just skip it + logger.Warnf("resolving name [%s] resulted in a skippable error [%s], skipping it", name, err.Error()) } else { return fmt.Errorf("error validating new name [%v]: %w", name, err) }