misc: add missing dns.exceptions and dns.resolver imports (#59703)
This commit is contained in:
parent
2d1034f4a9
commit
044cecf08b
|
@ -40,6 +40,8 @@ import bleach
|
|||
|
||||
try:
|
||||
import dns
|
||||
import dns.exception
|
||||
import dns.resolver
|
||||
except (ImportError, OSError):
|
||||
dns = None
|
||||
|
||||
|
|
Loading…
Reference in New Issue