mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-11-11 08:46:00 +01:00
Fixed FURB142 (for-loop-set-mutations): Use of set.add() in a for loop
This commit is contained in:
1 parent
c3826e45aa
commit
04ed752948
1 file changed
+1
-2
@@ -671,8 +671,7 @@ def get_certificate_domains(cert):
|
||||
|
||||
try:
|
||||
sans = cert.extensions.get_extension_for_oid(OID_SUBJECT_ALTERNATIVE_NAME).value.get_values_for_type(DNSName)
|
||||
for san in sans:
|
||||
names.add(idna_decode_dns_name(san))
|
||||
names.update(idna_decode_dns_name(san) for san in sans)
|
||||
except ExtensionNotFound:
|
||||
pass
|
||||
|
||||
|
||||
Reference in new issue
Block a user