Fix subtle breakage on some certs, when ssl_dnsname_match throws a non-CertificateError exception.

This commit is contained in:
Solderpunk 2023-11-15 19:47:17 +01:00
parent 50c43c75b4
commit 91ff51a0ef
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ class TofuStore:
try:
ssl._dnsname_match(name, host)
break
except ssl.CertificateError:
except Exception:
continue
else:
# If we didn't break out, none of the names were valid